1.

Explain Query DSL in ElasticSearch.

Answer»

Elasticsearch generally provides a QUERY Domain Specific Language (DSL) BASED on JSON to DEFINE queries. Query DSL contains two kinds of clauses:

  • Leaf query clause: A leaf query clause looks for specific values in a field or fields. They can be used independently. Matches, terms, and range queries are some examples of these queries.
  • Compound query clause: A compound query clause is a combination of a leaf query and other compound queries. These queries combine multiple queries to produce their intended results.

The BEHAVIOUR of query clauses differs depending on whether it is used in a filter CONTEXT or a query context.



Discussion

No Comment Found