Hi Salman,
I am confused because with surround no analysis is applied at query time. I 
suspect that surround query parser is not kicking in. You should see SrndQuery 
or something like at parser query section.



On Monday, December 9, 2013 6:24 AM, Salman Akram 
<salman.ak...@northbaysolutions.net> wrote:
 
All,

I posted this sub-issue with another issue few days back but maybe it was
not obvious so posting it on a separate thread.

We recently migrated to SOLR 4.6. We use Common Grams but queries with
words in the CG list have slowed down. On debugging we found that for CG
words the parser is adding individual tokens of those words in the query
too which ends up slowing it. Below is an example:

Query = "only be"

Here is what debug shows. I have highlighted the red part which is
different in both versions i.e. SOLR 4.6 is making it a multiphrasequery
and adding individual tokens too. Can someone help?

SOLR 4.6 (takes 20 secs)
<str name="rawquerystring">{!surround}<Contents:"only be"></str>
<str name="querystring">{!surround}<Contents:"only be"></str>
<str name="parsedquery">MultiPhraseQuery(Contents:"(only only_be) be")</str>
<str name="parsedquery_toString">Contents:"(only only_be) be"</str>

SOLR 1.4.1 (takes 1 sec)
<str name="rawquerystring">{!surround}<Contents:"only be"></str>
<str name="querystring">{!surround}<Contents:"only be"></str>
<str name="parsedquery">Contents:only_be</str>
<str name="parsedquery_toString">Contents:only_be</str>--


Regards,

Salman Akram

Reply via email to