[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to