elasticsearch 查詢(xún)教程

權(quán)威指南文檔:https://www.elastic.co/guide/cn/elasticsearch/guide/current/index.html

1:輕量搜索 _search搜索所有文檔時(shí)候,默認(rèn)返回10條記錄。
https://www.elastic.co/guide/cn/elasticsearch/guide/current/_search_lite.html
2:查詢(xún)表達(dá)式搜索
輕量搜索Query-string 搜索通過(guò)命令非常方便進(jìn)行實(shí)時(shí)性查詢(xún),但是具有一定局限性。當(dāng)復(fù)雜查詢(xún)和健壯的查詢(xún)就不適合使用輕量搜索,Elasticsearch提供了一種豐富的查詢(xún)語(yǔ)言:查詢(xún)表達(dá)式查詢(xún)。
https://www.elastic.co/guide/cn/elasticsearch/guide/current/_search_with_query_dsl.html
3:高量搜索:匹配查詢(xún)條件的結(jié)果會(huì)高量顯示。
https://www.elastic.co/guide/cn/elasticsearch/guide/current/highlighting-intro.html
4:聚合查詢(xún):用于執(zhí)行一些聚合操作,類(lèi)似于mysql中的group by,sum, avg, max, min 等。
https://www.elastic.co/guide/cn/elasticsearch/guide/current/_analytics.html
5:短語(yǔ)搜索:用于匹配一系列單詞或者短語(yǔ)。
https://www.elastic.co/guide/cn/elasticsearch/guide/current/_phrase_search.html
6:全文搜索:符合匹配查詢(xún)條件任一一個(gè)詞多滿足查詢(xún)。傳統(tǒng)數(shù)據(jù)庫(kù)很難搞定的任務(wù)。https://www.elastic.co/guide/cn/elasticsearch/guide/current/_full_text_search.html

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容