# Kibana autocomplete inside bool

**URL:** <https://discuss.elastic.co/t/kibana-autocomplete-inside-bool/95035>\
**Category:** Kibana\
**Created:** [July 29, 2017, 7:26am UTC](https://discuss.elastic.co/t/kibana-autocomplete-inside-bool/95035 "2017-07-29T07:26:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agardnerIT](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@agardnerIT](https://discuss.elastic.co/u/agardnerIT)\
**Post date:** [July 29, 2017, 7:26am UTC](https://discuss.elastic.co/t/kibana-autocomplete-inside-bool/95035/1 "2017-07-29T07:26:09Z")

</div>

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:

1. My query is syntactically / structurally correct and Kibana could be improved.
2. 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?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 31, 2017, 11:05am UTC](https://discuss.elastic.co/t/kibana-autocomplete-inside-bool/95035/2 "2017-07-31T11:05:37Z")

</div>

Hi @agardnerIT,

you seem to have indeed found a bug in the autocompletion there. It would be much appreciated if you could [open a new issue](https://github.com/elastic/kibana/issues/new) on GitHub.

As for improving the query, it depends on your use-case. If the `constant_score` query does indeed not contain a value for `boost`, you could leave it out and just run the `bool` query directly. The query seems to be syntactically correct in any case.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 28, 2017, 11:05am UTC](https://discuss.elastic.co/t/kibana-autocomplete-inside-bool/95035/3 "2017-08-28T11:05:39Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
