You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Charlie Maroto <ch...@gmail.com> on 2012/02/26 06:53:56 UTC

Solr Analyzed or "parsedquery" Terms

Hi all,

*Question*
Is there a way to get the analyzed or parsedquery terms for a given search?
 Preferably along with the search results

*What are we looking for?*
Something that would tell us what are the actual terms searched by Solr
after all tokenization, analysis and filtering have been applied.  The
terms “accelerates downloading” are a simple example of how terms are
modified by our Solr config before the search is done.  Other complications
would arise if search terms typed in by the user include uppercase letters
(“Download Accelerator”), punctuation marks or special characters of any
kind (“i-Pod”), etc.  So, we are looking for something like the "acceler
download" portion of the "parsedquery" in the Solr debug output:

   "rawquerystring":"accelerates downloading",
   "querystring":"accelerates downloading",
   …
   "parsedquery_toString":" … (content:\"*acceler download*\"^2.0)
",

Another example of what we want is what you can get via the Field Analysis
page (http://localhost:8983/solr/admin/analysis.jsp), as in the attached
image.

Thanks,

CARLOS