# How to print the effective search query that ElasticSearch queries against after the Analyzing the User Given Query with the Query analyzer?

**URL:** <https://discuss.elastic.co/t/how-to-print-the-effective-search-query-that-elasticsearch-queries-against-after-the-analyzing-the-user-given-query-with-the-query-analyzer/14429>\
**Category:** Elasticsearch\
**Created:** [November 15, 2013, 2:20pm UTC](https://discuss.elastic.co/t/how-to-print-the-effective-search-query-that-elasticsearch-queries-against-after-the-analyzing-the-user-given-query-with-the-query-analyzer/14429 "2013-11-15T14:20:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sowjanya](https://avatars.discourse-cdn.com/v4/letter/s/fbc32d/32.png) [@sowjanya](https://discuss.elastic.co/u/sowjanya)\
**Post date:** [November 15, 2013, 2:20pm UTC](https://discuss.elastic.co/t/how-to-print-the-effective-search-query-that-elasticsearch-queries-against-after-the-analyzing-the-user-given-query-with-the-query-analyzer/14429/1 "2013-11-15T14:20:21Z")

</div>

For Example:

Elastic AND Search is not Rocket-Science

If this is the actual query given by the user.

Let's say that the query analyzer

- takes out all the stops word (\*is \*and \*not) \*and
- considers Rocket-Science as a single word.

The effective search query can be visualized as _Elastic AND Search  
Rocket-Science_

_Is there a way to print this using the API of the Query Parsers_

_Please help. Thanks in advance._

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [November 15, 2013, 2:22pm UTC](https://discuss.elastic.co/t/how-to-print-the-effective-search-query-that-elasticsearch-queries-against-after-the-analyzing-the-user-given-query-with-the-query-analyzer/14429/2 "2013-11-15T14:22:41Z")

</div>

Try the explain api. If that doesn't do it then I doubt it. It would be a  
neat feature though.

On Fri, Nov 15, 2013 at 9:20 AM, Elastic Sowjanya  
[sowjanyachalla@gmail.com](mailto:sowjanyachalla@gmail.com)wrote:

> For Example:
> 
> Elastic AND Search is not Rocket-Science
> 
> If this is the actual query given by the user.
> 
> Let's say that the query analyzer
> 
> - takes out all the stops word (\*is \*and \*not) \*and
> - considers Rocket-Science as a single word.
> 
> The effective search query can be visualized as _Elastic AND Search  
> Rocket-Science_
> 
> _Is there a way to print this using the API of the Query Parsers_
> 
> _Please help. Thanks in advance._
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:06am UTC](https://discuss.elastic.co/t/how-to-print-the-effective-search-query-that-elasticsearch-queries-against-after-the-analyzing-the-user-given-query-with-the-query-analyzer/14429/3 "2017-07-06T02:06:44Z")

</div>

Closed on July 6, 2017, 2:06am UTC


