August 2019
Intermediate to advanced
560 pages
13h 41m
English
There is a file in the original open source project (for reference, see https://github.com/elastic/elasticsearch-dsl-py/blob/master/elasticsearch_dsl/query.py), named query.py, that contains a set of classes that correspond to the query type. A list of supported query types and their provided classes are compiled in the following table. You can use the class to construct the query object:
|
Category |
Query type |
Provided class name |
|
Match all/None query |
match_all |
MatchAll |
|
match_none |
MatchNone |
|
|
Full-text query |
common |
Common |
|
match |
Match |
|
|
match_phrase |
MatchPhrase |
|
|
match_phrase_prefix |
MatchPhrasePrefix |
|
|
multi_match |
MultiMatch |
|
|
query_string |
QueryString |
|
|
simple_query_string |
Read now
Unlock full access