[
https://issues.apache.org/jira/browse/SOLR-10256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Abhishek Kumar Singh updated SOLR-10256:
----------------------------------------
Attachment: (was: SOLR-10256.patch)
> Parentheses in SpellCheckCollator
> ---------------------------------
>
> Key: SOLR-10256
> URL: https://issues.apache.org/jira/browse/SOLR-10256
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: spellchecker
> Reporter: Abhishek Kumar Singh
>
> SpellCheckCollator adds parentheses ( *'('* and *')'* ) around tokens which
> have space between them.
> This should be configurable, because if *_WordBreakSpellCheckComponent_* is
> being used, queries like : *applejuice* will be broken down to *apple juice*.
> Such suggestions are being surrounded by braces by current
> *SpellCheckCollator*.
> And when surrounded by brackets, they represent the same position by
> _EdismaxParser_ , which is not required.
> https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/spelling/SpellCheckCollator.java#L227
>
> A solution to this will be to have a flag, which can help disable this
> parenthesisation of spell check suggestions.
> *----------------------------*
> *Update*:
> Raised PR for the same -> https://github.com/apache/lucene-solr/pull/168
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]