August 2019
Intermediate to advanced
560 pages
13h 41m
English
Compound queries are used to combine multiple clauses to build a complex query. There are several sub-type queries, and each of these are described briefly in the following table.
| Sub-type | ||
| bool | Description | This query combines query clauses using Boolean equivalent operators such as must, must_not,and should to provide more relevant or specific results. |
| Example | "bool": {"must": {"match_phrase_prefix": {"fund_name": "ishares edge" }}, "must_not": {"match": {"fund_name":"global"}}} | |
| boosting | Description | When searching for multiple fields with term query, we may want to increase the weight of the score of some fields. You can specify a positive query and a negative query. A negative_boost parameter will be specified ... |
Read now
Unlock full access