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


(sowjanya) #1

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.
For more options, visit https://groups.google.com/groups/opt_out.


(Nik Everett) #2

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.comwrote:

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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3