The autocomplete in DevTools is great because, as a beginner, it suggests what you might mean and what's legal at the current stage of building your query.
For example. I type "q and it suggests "query", then I type "co and I get "constant_score".
However, once I get inside the "bool", it seems to stop suggesting - making it difficult to know (as a beginner) what my feasible options are.
For example, I've built this query:
GET my_store/products/_search { "query": { "constant_score": { "filter": { "bool": { "must" : [ { "term" : { "productType" : "cooker"} }, { "range" : { "price" : { "gte" : 10, "lte" : 20 } } } ] } } } } }
So I see two possibilities here:
- My query is syntactically / structurally correct and Kibana could be improved.
- My query is syntactically / structurally incorrect and Kibana is behaving correctly.
If it's 1, I'm happy to raise an enhancement request. If it's 2, how could my query be improved?