權(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