From the course: Elasticsearch Essential Training

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Elasticsearch Query DSL context

Elasticsearch Query DSL context - Elastic Stack Tutorial

From the course: Elasticsearch Essential Training

Elasticsearch Query DSL context

- [Instructor] Imagine you are building a search engine, and you need to rank results based on relevance, apply filters like in stock products, or combine both of them like relevancy and the filters. How do you balance between the relevancy scoring and precise filtering? That's where the understanding of the query DSL context become crucial. Let's understand in more detail. Elasticsearch uses query DSL, that is domain-specific language, to construct the queries in JSON format. It allows you to perform full text searches. It helps you to apply exact match filters, and you can also combine the complex conditions using the Boolean logic. The query DSL operates in two main context. One is query context, another one is a filter context. Let's understand both of them. The query context determines the relevancy of the documents. It is majorly depends upon the scoring it. It's used for full text search and for ranking purpose. For example, you are trying to find out the product with some…

Contents