You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Abhishek Kumar Singh (JIRA)" <ji...@apache.org> on 2017/03/09 07:54:38 UTC
[jira] [Updated] (SOLR-10256) Parentheses in SpellCheckCollator
[ https://issues.apache.org/jira/browse/SOLR-10256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Abhishek Kumar Singh updated SOLR-10256:
----------------------------------------
Description:
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*.
And when surrounded by brackets, they represent the same position, 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 parnthesisation of spell check suggestion.
was:
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.
And when surrounded by brackets, they represent the same position, 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 parnthesisation of spell check suggestion.
> 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*.
> And when surrounded by brackets, they represent the same position, 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 parnthesisation of spell check suggestion.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org