The _validate API
This _validate API provides you with a way to provide an evaluation of your query without execution. When you try to work with time-consuming, heavy queries, you will need it to shorten your testing time. Additional parameters, such as df, analyzer, default_operator, lenient, and analyze_wildcard, are provided for better validation processing. Their uses are the same as what we described in the URI search section. Let's look at an example to validate a query that matches the rating field with text, while its data type is numeric. We can add a URL parameter, ?explain=true, to get a detailed explanation as to why it fails.
In the following screenshot, you can read the explanations field to see the cause of the failure. In ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access