# What the heck is this search? :)

**URL:** https://discuss.elastic.co/t/what-the-heck-is-this-search/19375
**Category:** Elasticsearch
**Created:** [August 20, 2014, 7:14pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375 "2014-08-20T19:14:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Chris\_Neal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_neal/32/3527_2.png) [@Chris\_Neal](https://discuss.elastic.co/u/Chris_Neal)
#### Post date: [August 20, 2014, 7:14pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/1 "2014-08-20T19:14:10Z")

</div>

Hi guys,

I'm working through some performance concerns in my cluster, and I turned  
on the slow log feature. I'm seeing this in the index\_search\_slowlog.log  
log:

[2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
[elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
took\_millis[6081], types[], stats[], search\_type[QUERY\_TH  
EN\_FETCH], total\_shards[86],  
source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":[]},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
extra\_source[],

Is that a user generated search, or something internal to ES maybe? I  
can't even tell what it's trying to do. It seems to hit every one of my  
indexes though, as the same search query is logged 63 times in a one minute  
period.

Any ideas what this is? Is it something to be concerned about?

Thanks for the help!  
Chris

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)
#### Post date: [August 20, 2014, 7:43pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/2 "2014-08-20T19:43:37Z")

</div>

There is no such thing as query "internal to ES", if you see this in the  
logs you have a client making it. I would point to a Kibana instance but  
I'm pretty sure Kibana won't use a query\_string query like this.

And yes this is quite an expensive query (and facets) to run on a decent  
sized installation.

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)

On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
wrote:

> Hi guys,
> 
> I'm working through some performance concerns in my cluster, and I turned  
> on the slow log feature. I'm seeing this in the index\_search\_slowlog.log  
> log:
> 
> [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> EN\_FETCH], total\_shards[86],  
> source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> extra\_source,
> 
> Is that a user generated search, or something internal to ES maybe? I  
> can't even tell what it's trying to do. It seems to hit every one of my  
> indexes though, as the same search query is logged 63 times in a one minute  
> period.
> 
> Any ideas what this is? Is it something to be concerned about?
> 
> Thanks for the help!  
> Chris
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)
#### Post date: [August 20, 2014, 8:53pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/3 "2014-08-20T20:53:06Z")

</div>

Very strange query indeed. Wildcard search filtered by a match\_all. What?!?

It is not Elasticsearch, but perhaps some plugin. Itamar mentioned Kibana,  
although you did not mention it in your post. Any other plugins? Marvel?

--  
Ivan

On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
wrote:

> There is no such thing as query "internal to ES", if you see this in the  
> logs you have a client making it. I would point to a Kibana instance but  
> I'm pretty sure Kibana won't use a query\_string query like this.
> 
> And yes this is quite an expensive query (and facets) to run on a decent  
> sized installation.
> 
> --
> 
> Itamar Syn-Hershko  
> [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> Freelance Developer & Consultant  
> Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> 
> On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> wrote:
> 
> > Hi guys,
> > 
> > I'm working through some performance concerns in my cluster, and I turned  
> > on the slow log feature. I'm seeing this in the index\_search\_slowlog.log  
> > log:
> > 
> > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > EN\_FETCH], total\_shards[86],  
> > source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > extra\_source,
> > 
> > Is that a user generated search, or something internal to ES maybe? I  
> > can't even tell what it's trying to do. It seems to hit every one of my  
> > indexes though, as the same search query is logged 63 times in a one minute  
> > period.
> > 
> > Any ideas what this is? Is it something to be concerned about?
> > 
> > Thanks for the help!  
> > Chris
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)
#### Post date: [August 20, 2014, 8:57pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/4 "2014-08-20T20:57:33Z")

</div>

I thought of Kibana because there's a faceting operation on the \_type  
field. But I doubt neither Marvel nor Kibana would issue such an awful  
query (notice the "fquery" bit, too).

Any part of your system (plugin or other) which might want to look at the  
types of documents added to an ES index?

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)

On Wed, Aug 20, 2014 at 11:53 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> Very strange query indeed. Wildcard search filtered by a match\_all. What?!?
> 
> It is not Elasticsearch, but perhaps some plugin. Itamar mentioned Kibana,  
> although you did not mention it in your post. Any other plugins? Marvel?
> 
> --  
> Ivan
> 
> On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> wrote:
> 
> > There is no such thing as query "internal to ES", if you see this in the  
> > logs you have a client making it. I would point to a Kibana instance but  
> > I'm pretty sure Kibana won't use a query\_string query like this.
> > 
> > And yes this is quite an expensive query (and facets) to run on a decent  
> > sized installation.
> > 
> > --
> > 
> > Itamar Syn-Hershko  
> > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > Freelance Developer & Consultant  
> > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > 
> > On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> > wrote:
> > 
> > > Hi guys,
> > > 
> > > I'm working through some performance concerns in my cluster, and I  
> > > turned on the slow log feature. I'm seeing this in the  
> > > index\_search\_slowlog.log log:
> > > 
> > > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > > EN\_FETCH], total\_shards[86],  
> > > source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > > extra\_source,
> > > 
> > > Is that a user generated search, or something internal to ES maybe? I  
> > > can't even tell what it's trying to do. It seems to hit every one of my  
> > > indexes though, as the same search query is logged 63 times in a one minute  
> > > period.
> > > 
> > > Any ideas what this is? Is it something to be concerned about?
> > > 
> > > Thanks for the help!  
> > > Chris
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Chris\_Neal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_neal/32/3527_2.png) [@Chris\_Neal](https://discuss.elastic.co/u/Chris_Neal)
#### Post date: [August 21, 2014, 4:22pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/5 "2014-08-21T16:22:18Z")

</div>

Thanks guys for the thoughts. Plugins didn't even occur to me, but they  
should have.

We've got Marvel, Head, and ElasticHQ installed.

Is there some way to tell where the search is coming from? Something like  
an HTTP access log or something?

Thanks again for your time!  
Chris

On Wed, Aug 20, 2014 at 3:57 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
wrote:

> I thought of Kibana because there's a faceting operation on the \_type  
> field. But I doubt neither Marvel nor Kibana would issue such an awful  
> query (notice the "fquery" bit, too).
> 
> Any part of your system (plugin or other) which might want to look at the  
> types of documents added to an ES index?
> 
> --
> 
> Itamar Syn-Hershko  
> [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> Freelance Developer & Consultant  
> Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> 
> On Wed, Aug 20, 2014 at 11:53 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> 
> > Very strange query indeed. Wildcard search filtered by a match\_all.  
> > What?!?
> > 
> > It is not Elasticsearch, but perhaps some plugin. Itamar mentioned  
> > Kibana, although you did not mention it in your post. Any other plugins?  
> > Marvel?
> > 
> > --  
> > Ivan
> > 
> > On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> > wrote:
> > 
> > > There is no such thing as query "internal to ES", if you see this in the  
> > > logs you have a client making it. I would point to a Kibana instance but  
> > > I'm pretty sure Kibana won't use a query\_string query like this.
> > > 
> > > And yes this is quite an expensive query (and facets) to run on a decent  
> > > sized installation.
> > > 
> > > --
> > > 
> > > Itamar Syn-Hershko  
> > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > Freelance Developer & Consultant  
> > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > 
> > > On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> > > wrote:
> > > 
> > > > Hi guys,
> > > > 
> > > > I'm working through some performance concerns in my cluster, and I  
> > > > turned on the slow log feature. I'm seeing this in the  
> > > > index\_search\_slowlog.log log:
> > > > 
> > > > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > > > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > > > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > > > EN\_FETCH], total\_shards[86],  
> > > > source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > > > extra\_source,
> > > > 
> > > > Is that a user generated search, or something internal to ES maybe? I  
> > > > can't even tell what it's trying to do. It seems to hit every one of my  
> > > > indexes though, as the same search query is logged 63 times in a one minute  
> > > > period.
> > > > 
> > > > Any ideas what this is? Is it something to be concerned about?
> > > > 
> > > > Thanks for the help!  
> > > > Chris
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .  
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)
#### Post date: [August 21, 2014, 4:27pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/6 "2014-08-21T16:27:43Z")

</div>

I'm going to bet on Head. Disable it and see what happens.

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)

On Thu, Aug 21, 2014 at 7:22 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
wrote:

> Thanks guys for the thoughts. Plugins didn't even occur to me, but they  
> should have.
> 
> We've got Marvel, Head, and ElasticHQ installed.
> 
> Is there some way to tell where the search is coming from? Something like  
> an HTTP access log or something?
> 
> Thanks again for your time!  
> Chris
> 
> On Wed, Aug 20, 2014 at 3:57 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> wrote:
> 
> > I thought of Kibana because there's a faceting operation on the \_type  
> > field. But I doubt neither Marvel nor Kibana would issue such an awful  
> > query (notice the "fquery" bit, too).
> > 
> > Any part of your system (plugin or other) which might want to look at the  
> > types of documents added to an ES index?
> > 
> > --
> > 
> > Itamar Syn-Hershko  
> > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > Freelance Developer & Consultant  
> > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > 
> > On Wed, Aug 20, 2014 at 11:53 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> > 
> > > Very strange query indeed. Wildcard search filtered by a match\_all.  
> > > What?!?
> > > 
> > > It is not Elasticsearch, but perhaps some plugin. Itamar mentioned  
> > > Kibana, although you did not mention it in your post. Any other plugins?  
> > > Marvel?
> > > 
> > > --  
> > > Ivan
> > > 
> > > On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko \<[itamar@code972.com](mailto:itamar@code972.com)
> > > 
> > > > wrote:
> > > 
> > > > There is no such thing as query "internal to ES", if you see this in  
> > > > the logs you have a client making it. I would point to a Kibana instance  
> > > > but I'm pretty sure Kibana won't use a query\_string query like this.
> > > > 
> > > > And yes this is quite an expensive query (and facets) to run on a  
> > > > decent sized installation.
> > > > 
> > > > --
> > > > 
> > > > Itamar Syn-Hershko  
> > > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > > Freelance Developer & Consultant  
> > > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > > 
> > > > On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> > > > wrote:
> > > > 
> > > > > Hi guys,
> > > > > 
> > > > > I'm working through some performance concerns in my cluster, and I  
> > > > > turned on the slow log feature. I'm seeing this in the  
> > > > > index\_search\_slowlog.log log:
> > > > > 
> > > > > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > > > > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > > > > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > > > > EN\_FETCH], total\_shards[86],  
> > > > > source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > > > > extra\_source,
> > > > > 
> > > > > Is that a user generated search, or something internal to ES maybe? I  
> > > > > can't even tell what it's trying to do. It seems to hit every one of my  
> > > > > indexes though, as the same search query is logged 63 times in a one minute  
> > > > > period.
> > > > > 
> > > > > Any ideas what this is? Is it something to be concerned about?
> > > > > 
> > > > > Thanks for the help!  
> > > > > Chris
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .  
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe_DrzbPKxA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Chris\_Neal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_neal/32/3527_2.png) [@Chris\_Neal](https://discuss.elastic.co/u/Chris_Neal)
#### Post date: [August 21, 2014, 4:36pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/7 "2014-08-21T16:36:50Z")

</div>

Done. Will report back.

Thank you!

On Thu, Aug 21, 2014 at 11:27 AM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
wrote:

> I'm going to bet on Head. Disable it and see what happens.
> 
> --
> 
> Itamar Syn-Hershko  
> [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> Freelance Developer & Consultant  
> Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> 
> On Thu, Aug 21, 2014 at 7:22 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> wrote:
> 
> > Thanks guys for the thoughts. Plugins didn't even occur to me, but they  
> > should have.
> > 
> > We've got Marvel, Head, and ElasticHQ installed.
> > 
> > Is there some way to tell where the search is coming from? Something  
> > like an HTTP access log or something?
> > 
> > Thanks again for your time!  
> > Chris
> > 
> > On Wed, Aug 20, 2014 at 3:57 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> > wrote:
> > 
> > > I thought of Kibana because there's a faceting operation on the \_type  
> > > field. But I doubt neither Marvel nor Kibana would issue such an awful  
> > > query (notice the "fquery" bit, too).
> > > 
> > > Any part of your system (plugin or other) which might want to look at  
> > > the types of documents added to an ES index?
> > > 
> > > --
> > > 
> > > Itamar Syn-Hershko  
> > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > Freelance Developer & Consultant  
> > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > 
> > > On Wed, Aug 20, 2014 at 11:53 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> > > 
> > > > Very strange query indeed. Wildcard search filtered by a match\_all.  
> > > > What?!?
> > > > 
> > > > It is not Elasticsearch, but perhaps some plugin. Itamar mentioned  
> > > > Kibana, although you did not mention it in your post. Any other plugins?  
> > > > Marvel?
> > > > 
> > > > --  
> > > > Ivan
> > > > 
> > > > On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko \<  
> > > > [itamar@code972.com](mailto:itamar@code972.com)\> wrote:
> > > > 
> > > > > There is no such thing as query "internal to ES", if you see this in  
> > > > > the logs you have a client making it. I would point to a Kibana instance  
> > > > > but I'm pretty sure Kibana won't use a query\_string query like this.
> > > > > 
> > > > > And yes this is quite an expensive query (and facets) to run on a  
> > > > > decent sized installation.
> > > > > 
> > > > > --
> > > > > 
> > > > > Itamar Syn-Hershko  
> > > > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > > > Freelance Developer & Consultant  
> > > > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > > > 
> > > > > On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal \<[chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)
> > > > > 
> > > > > > wrote:
> > > > > 
> > > > > > Hi guys,
> > > > > > 
> > > > > > I'm working through some performance concerns in my cluster, and I  
> > > > > > turned on the slow log feature. I'm seeing this in the  
> > > > > > index\_search\_slowlog.log log:
> > > > > > 
> > > > > > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > > > > > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > > > > > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > > > > > EN\_FETCH], total\_shards[86],  
> > > > > > source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > > > > > extra\_source,
> > > > > > 
> > > > > > Is that a user generated search, or something internal to ES maybe?  
> > > > > > I can't even tell what it's trying to do. It seems to hit every one of my  
> > > > > > indexes though, as the same search query is logged 63 times in a one minute  
> > > > > > period.
> > > > > > 
> > > > > > Any ideas what this is? Is it something to be concerned about?
> > > > > > 
> > > > > > Thanks for the help!  
> > > > > > Chris
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > .  
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe_DrzbPKxA%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe_DrzbPKxA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAND3DphneYS69WzGE2jL8zOAuZQwevFntJJAhrgFX%3Dvw0OpKMQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DphneYS69WzGE2jL8zOAuZQwevFntJJAhrgFX%3Dvw0OpKMQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)
#### Post date: [August 28, 2014, 8:48pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/8 "2014-08-28T20:48:00Z")

</div>

Hi Chris,

This is actually Kibana. The reason it uses query\_string is to allow people  
some kind of syntax in their query with no query parsing on the client  
side. Just a decision which I guess was made long ago to keep things simple.

Is this a problem for you in any way?

Cheers,  
Boaz

On Thursday, August 21, 2014 6:37:02 PM UTC+2, Chris Neal wrote:

> Done. Will report back.
> 
> Thank you!
> 
> On Thu, Aug 21, 2014 at 11:27 AM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> wrote:
> 
> > I'm going to bet on Head. Disable it and see what happens.
> > 
> > --
> > 
> > Itamar Syn-Hershko  
> > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > Freelance Developer & Consultant  
> > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > 
> > On Thu, Aug 21, 2014 at 7:22 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> > wrote:
> > 
> > > Thanks guys for the thoughts. Plugins didn't even occur to me, but they  
> > > should have.
> > > 
> > > We've got Marvel, Head, and ElasticHQ installed.
> > > 
> > > Is there some way to tell where the search is coming from? Something  
> > > like an HTTP access log or something?
> > > 
> > > Thanks again for your time!  
> > > Chris
> > > 
> > > On Wed, Aug 20, 2014 at 3:57 PM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> > > wrote:
> > > 
> > > > I thought of Kibana because there's a faceting operation on the \_type  
> > > > field. But I doubt neither Marvel nor Kibana would issue such an awful  
> > > > query (notice the "fquery" bit, too).
> > > > 
> > > > Any part of your system (plugin or other) which might want to look at  
> > > > the types of documents added to an ES index?
> > > > 
> > > > --
> > > > 
> > > > Itamar Syn-Hershko  
> > > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > > Freelance Developer & Consultant  
> > > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > > 
> > > > On Wed, Aug 20, 2014 at 11:53 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> > > > 
> > > > > Very strange query indeed. Wildcard search filtered by a match\_all.  
> > > > > What?!?
> > > > > 
> > > > > It is not Elasticsearch, but perhaps some plugin. Itamar mentioned  
> > > > > Kibana, although you did not mention it in your post. Any other plugins?  
> > > > > Marvel?
> > > > > 
> > > > > --  
> > > > > Ivan
> > > > > 
> > > > > On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko \<  
> > > > > [itamar@code972.com](mailto:itamar@code972.com)\> wrote:
> > > > > 
> > > > > > There is no such thing as query "internal to ES", if you see this in  
> > > > > > the logs you have a client making it. I would point to a Kibana instance  
> > > > > > but I'm pretty sure Kibana won't use a query\_string query like this.
> > > > > > 
> > > > > > And yes this is quite an expensive query (and facets) to run on a  
> > > > > > decent sized installation.
> > > > > > 
> > > > > > --
> > > > > > 
> > > > > > Itamar Syn-Hershko  
> > > > > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > > > > Freelance Developer & Consultant  
> > > > > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > > > > 
> > > > > > On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal \<  
> > > > > > [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)\> wrote:
> > > > > > 
> > > > > > > Hi guys,
> > > > > > > 
> > > > > > > I'm working through some performance concerns in my cluster, and I  
> > > > > > > turned on the slow log feature. I'm seeing this in the  
> > > > > > > index\_search\_slowlog.log log:
> > > > > > > 
> > > > > > > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > > > > > > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > > > > > > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > > > > > > EN\_FETCH], total\_shards[86],  
> > > > > > > source[{"facets":{"terms":{"terms":{"field":"\_type","size":100,"order":"count","exclude":},"facet\_filter":{"fquery":{"query":{"filtered":{"query":{"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > > > > > > extra\_source,
> > > > > > > 
> > > > > > > Is that a user generated search, or something internal to ES maybe?  
> > > > > > > I can't even tell what it's trying to do. It seems to hit every one of my  
> > > > > > > indexes though, as the same search query is logged 63 times in a one minute  
> > > > > > > period.
> > > > > > > 
> > > > > > > Any ideas what this is? Is it something to be concerned about?
> > > > > > > 
> > > > > > > Thanks for the help!  
> > > > > > > Chris
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to the Google  
> > > > > > > Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com)  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > > .  
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe_DrzbPKxA%40mail.gmail.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe_DrzbPKxA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > .
> > 
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/fab653a3-ccde-4c5d-8a8f-52033c3db3f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fab653a3-ccde-4c5d-8a8f-52033c3db3f0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Chris\_Neal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_neal/32/3527_2.png) [@Chris\_Neal](https://discuss.elastic.co/u/Chris_Neal)
#### Post date: [August 29, 2014, 4:19pm UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/9 "2014-08-29T16:19:50Z")

</div>

Hi Boaz,

Thanks for the reply. 🙂 It's not a problem per-se. I'm working through  
performance/memory issues and turned on the slow log file and that one  
popped up. It's a problem because it's slow, but not causing cluster  
stability issues!

It's interesting that you think it is Kibana though. I removed the Head  
plugin for 3 days and didn't see that query logged once, so I was pretty  
sure it was the culprit! Maybe it was just coincidence that whatever in  
Kibana was doing it didn't happen then either. Just my luck. 😉

Thanks again.  
Chris

On Thu, Aug 28, 2014 at 3:48 PM, Boaz Leskes [b.leskes@gmail.com](mailto:b.leskes@gmail.com) wrote:

> Hi Chris,
> 
> This is actually Kibana. The reason it uses query\_string is to allow  
> people some kind of syntax in their query with no query parsing on the  
> client side. Just a decision which I guess was made long ago to keep things  
> simple.
> 
> Is this a problem for you in any way?
> 
> Cheers,  
> Boaz
> 
> On Thursday, August 21, 2014 6:37:02 PM UTC+2, Chris Neal wrote:
> 
> > Done. Will report back.
> > 
> > Thank you!
> > 
> > On Thu, Aug 21, 2014 at 11:27 AM, Itamar Syn-Hershko [itamar@code972.com](mailto:itamar@code972.com)  
> > wrote:
> > 
> > > I'm going to bet on Head. Disable it and see what happens.
> > > 
> > > --
> > > 
> > > Itamar Syn-Hershko  
> > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > Freelance Developer & Consultant  
> > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > 
> > > On Thu, Aug 21, 2014 at 7:22 PM, Chris Neal [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)  
> > > wrote:
> > > 
> > > > Thanks guys for the thoughts. Plugins didn't even occur to me, but  
> > > > they should have.
> > > > 
> > > > We've got Marvel, Head, and ElasticHQ installed.
> > > > 
> > > > Is there some way to tell where the search is coming from? Something  
> > > > like an HTTP access log or something?
> > > > 
> > > > Thanks again for your time!  
> > > > Chris
> > > > 
> > > > On Wed, Aug 20, 2014 at 3:57 PM, Itamar Syn-Hershko \<[itamar@code972.com](mailto:itamar@code972.com)
> > > > 
> > > > > wrote:
> > > > 
> > > > > I thought of Kibana because there's a faceting operation on the \_type  
> > > > > field. But I doubt neither Marvel nor Kibana would issue such an awful  
> > > > > query (notice the "fquery" bit, too).
> > > > > 
> > > > > Any part of your system (plugin or other) which might want to look at  
> > > > > the types of documents added to an ES index?
> > > > > 
> > > > > --
> > > > > 
> > > > > Itamar Syn-Hershko  
> > > > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > > > Freelance Developer & Consultant  
> > > > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > > > 
> > > > > On Wed, Aug 20, 2014 at 11:53 PM, Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com) wrote:
> > > > > 
> > > > > > Very strange query indeed. Wildcard search filtered by a match\_all.  
> > > > > > What?!?
> > > > > > 
> > > > > > It is not Elasticsearch, but perhaps some plugin. Itamar mentioned  
> > > > > > Kibana, although you did not mention it in your post. Any other plugins?  
> > > > > > Marvel?
> > > > > > 
> > > > > > --  
> > > > > > Ivan
> > > > > > 
> > > > > > On Wed, Aug 20, 2014 at 12:43 PM, Itamar Syn-Hershko \<  
> > > > > > [itamar@code972.com](mailto:itamar@code972.com)\> wrote:
> > > > > > 
> > > > > > > There is no such thing as query "internal to ES", if you see this in  
> > > > > > > the logs you have a client making it. I would point to a Kibana instance  
> > > > > > > but I'm pretty sure Kibana won't use a query\_string query like this.
> > > > > > > 
> > > > > > > And yes this is quite an expensive query (and facets) to run on a  
> > > > > > > decent sized installation.
> > > > > > > 
> > > > > > > --
> > > > > > > 
> > > > > > > Itamar Syn-Hershko  
> > > > > > > [http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
> > > > > > > Freelance Developer & Consultant  
> > > > > > > Author of RavenDB in Action [http://manning.com/synhershko/](http://manning.com/synhershko/)
> > > > > > > 
> > > > > > > On Wed, Aug 20, 2014 at 10:14 PM, Chris Neal \<  
> > > > > > > [chris.neal@derbysoft.net](mailto:chris.neal@derbysoft.net)\> wrote:
> > > > > > > 
> > > > > > > > Hi guys,
> > > > > > > > 
> > > > > > > > I'm working through some performance concerns in my cluster, and I  
> > > > > > > > turned on the slow log feature. I'm seeing this in the  
> > > > > > > > index\_search\_slowlog.log log:
> > > > > > > > 
> > > > > > > > [2014-08-20 06:37:52,734][INFO][index.search.slowlog.query]  
> > > > > > > > [elasticsearch-ip-10-0-0-41] [index-20140731][0] took[6s],  
> > > > > > > > took\_millis[6081], types, stats, search\_type[QUERY\_TH  
> > > > > > > > EN\_FETCH], total\_shards[86], source[{"facets":{"terms":{"  
> > > > > > > > terms":{"field":"\_type","size":100,"order":"count","exclude"  
> > > > > > > > :},"facet\_filter":{"fquery":{"query":{"filtered":{"query":  
> > > > > > > > {"bool":{"should":[{"query\_string":{"query":"\*"}}]}},"  
> > > > > > > > filter":{"bool":{"must":[{"match\_all":{}}]}}}}}}}},"size":0}],  
> > > > > > > > extra\_source,
> > > > > > > > 
> > > > > > > > Is that a user generated search, or something internal to ES maybe?  
> > > > > > > > I can't even tell what it's trying to do. It seems to hit every one of my  
> > > > > > > > indexes though, as the same search query is logged 63 times in a one minute  
> > > > > > > > period.
> > > > > > > > 
> > > > > > > > Any ideas what this is? Is it something to be concerned about?
> > > > > > > > 
> > > > > > > > Thanks for the help!  
> > > > > > > > Chris
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > You received this message because you are subscribed to the Google  
> > > > > > > > Groups "elasticsearch" group.  
> > > > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > > To view this discussion on the web visit  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/](https://groups.google.com/d/msgid/elasticsearch/)  
> > > > > > > > CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.  
> > > > > > > > [gmail.com](http://gmail.com)  
> > > > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpj7BzbaNva9B7JNFOeeaC9SrYWCEnvzTJgx2-AQeT478w%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > > > .  
> > > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > > 
> > > > > > > --  
> > > > > > > You received this message because you are subscribed to the Google  
> > > > > > > Groups "elasticsearch" group.  
> > > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > > To view this discussion on the web visit  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%25)  
> > > > > > > 3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%[40mail.gmail.com](http://40mail.gmail.com)  
> > > > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG\_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZvzAbbWYHP%3DEAWb4LgZ7XxiKMK6ES%2BrG_M%2BLGG%2BHjDgDQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > > .
> > > > > > > 
> > > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > > 
> > > > > > --  
> > > > > > You received this message because you are subscribed to the Google  
> > > > > > Groups "elasticsearch" group.  
> > > > > > To unsubscribe from this group and stop receiving emails from it,  
> > > > > > send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > > msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%  
> > > > > > 2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%[40mail.gmail.com](http://40mail.gmail.com)  
> > > > > > [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW\_r%2BdUv%3Dfhg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCtyAG3B7-uWU%2BuRa416c%2Bz%2BDA3fEpSDDKW_r%2BdUv%3Dfhg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > > .
> > > > > > 
> > > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > > 
> > > > > --  
> > > > > You received this message because you are subscribed to the Google  
> > > > > Groups "elasticsearch" group.  
> > > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > > msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%  
> > > > > 3DxAJ5p1oCsXw%[40mail.gmail.com](http://40mail.gmail.com)  
> > > > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4Zsqcw9eDQS427E%2BwebLqhy%3DYa76M3DkPJ%3DxAJ5p1oCsXw%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > > .
> > > > > 
> > > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > > 
> > > > --  
> > > > You received this message because you are subscribed to the Google  
> > > > Groups "elasticsearch" group.  
> > > > To unsubscribe from this group and stop receiving emails from it, send  
> > > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > > msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_  
> > > > cg9hUhEJSg%[40mail.gmail.com](http://40mail.gmail.com)  
> > > > [https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D\_R3Tvec%3D2fVu5mt%3DM7\_cg9hUhEJSg%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAND3DpgYfDZfg7pJN%3DkJ%3D_R3Tvec%3D2fVu5mt%3DM7_cg9hUhEJSg%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > > .
> > > > 
> > > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%  
> > > 2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%[40mail.gmail.com](http://40mail.gmail.com)  
> > > [https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe\_DrzbPKxA%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZsWP%3DhYvnoJiyy%3Dwy8%2Bhu9pRya-nqxFNBbKe_DrzbPKxA%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> > > .
> > > 
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/fab653a3-ccde-4c5d-8a8f-52033c3db3f0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/fab653a3-ccde-4c5d-8a8f-52033c3db3f0%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/fab653a3-ccde-4c5d-8a8f-52033c3db3f0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/fab653a3-ccde-4c5d-8a8f-52033c3db3f0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAND3Dpg\_nTa%2Bh%2BK3A-5\_uhv%3DXfMJ6uf5iUb1G-RU\_1ayQuyMUA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAND3Dpg_nTa%2Bh%2BK3A-5_uhv%3DXfMJ6uf5iUb1G-RU_1ayQuyMUA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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: [July 6, 2017, 1:05am UTC](https://discuss.elastic.co/t/what-the-heck-is-this-search/19375/10 "2017-07-06T01:05:26Z")

</div>


