最近需要debug程序,debug的時候需要查找elasticsearch里面的數(shù)據(jù)是否正確。
第一步建立一個post請求,并按照圖下的方式填上ur和參數(shù):
發(fā)送post請求,url為:
http://ip:port/index_name/_search
我這里查詢的是title字段。
{
"query":{
"query_string":{
"query":"基于半監(jiān)督學(xué)習(xí)的客戶流失預(yù)測......",
"fields": ["title" ]
}
}
}
如果需要用戶名和密碼,需要這樣填寫:
填寫用戶名和密碼:
然后點擊send就可以獲取數(shù)據(jù)啦。
參考文獻
elasticsearch_search_apis.htm文章來源:http://www.zghlxwxcb.cn/news/detail-723562.html
使用postman訪問帶密碼的elastic文章來源地址http://www.zghlxwxcb.cn/news/detail-723562.html
到了這里,關(guān)于[elasticsearch]使用postman來查詢數(shù)據(jù)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!