[
https://issues.apache.org/jira/browse/SOLR-3631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13418325#comment-13418325
]
James Dyer commented on SOLR-3631:
----------------------------------
Based on the exception log, here's what I think is happening:
1.The QueryConverter class is not parsing the query correctly. Unless the
solrconfig.xml has a <queryConverter /> element, it would use
SpellingQueryCOnverter. At least one related bug was fixed in 3.6 (SOLR-2509).
2. Based on incorrect assumptions from the QueryConverter, it corrects
"shortDesc_en:(hg1453hg)" to "shortDeshigh"
3. With "maxCollationTries" set, it re-queries this correction. However, the
query parser cannot handle the resulting nonsense query.
So I would try 3.6 or at least patch what you've got with the fix on SOLR-2509.
If that doesn't work, we at least need to see your spellcheck response output
with "spellcheck.extendedResults=true". I wouldn't be terribly surprised if
SpellingQueryConverter can't handle this query.
As a workaround, try simplifying the query with fewer parenthesis. Worst case,
strip out everything that is not a correctable keyword and put that on
"spellcheck.q". Also, if it works most of the time but just fails when
part-number queries are sent you can safely ignore the exception (but still
help us fix this if its a new bug!).
> Parse exception when spellchecker with collations is used
> ---------------------------------------------------------
>
> Key: SOLR-3631
> URL: https://issues.apache.org/jira/browse/SOLR-3631
> Project: Solr
> Issue Type: Bug
> Components: search, spellchecker
> Affects Versions: 3.1
> Environment: Windows 7
> Tomcat 6.0.26
> Solr 3.1
> Java options: -XX:PermSize=128m -XX:MaxPermSize=128m -Xms1024m -Xmx1024m
> Reporter: Eugene Viktorovich
> Attachments: exception-log.log
>
>
> Request
> {code}
> http://<host>:<port>/solr/live/select/?spellcheck=true&q=+((shortDesc_en:(hg1453hg)^8))
> {code}
> to Solr calls exception. See attached file [^exception-log.log].
> solrconfig.xml:
> {code:xml}
> ...
> <requestHandler name="standard" class="solr.SearchHandler" default="true">
> <!-- default values for query parameters -->
> <lst name="defaults">
> <str name="echoParams">explicit</str>
> <str name="spellcheck.onlyMorePopular">true</str>
>
> <str name="spellcheck.extendedResults">false</str>
> <str name="spellcheck.collate">true</str>
> <str name="spellcheck.collateExtendedResults">true</str>
>
> <str name="spellcheck.maxCollations">3</str>
>
> <str name="spellcheck.maxCollationTries">6</str>
>
> <str name="spellcheck.count">3</str>
> </lst>
> <arr name="last-components">
> <str>spellcheck</str>
> </arr>
> </requestHandler>
> ...
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]