lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Salman Akram <salman.ak...@northbaysolutions.net>
Subject SOLR 4 - Query Issue in Common Grams with Surround Query Parser
Date Mon, 09 Dec 2013 04:23:29 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message