You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Long (Created) (JIRA)" <ji...@apache.org> on 2012/03/30 17:44:30 UTC
[jira] [Created] (SOLR-3300) SpellChecker and Dismax fail when
using value from q containing hyphen
SpellChecker and Dismax fail when using value from q containing hyphen
----------------------------------------------------------------------
Key: SOLR-3300
URL: https://issues.apache.org/jira/browse/SOLR-3300
Project: Solr
Issue Type: Bug
Components: SolrCloud
Reporter: Michael Long
Using a URL like this:
http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true
Returns an error:
String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
Yet if I instead use spellchecker.q, it works:
http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Closed] (SOLR-3300) SpellChecker and Dismax fail when using
value from q containing hyphen
Posted by "Michael Long (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Long closed SOLR-3300.
------------------------------
I downloaded apache-solr-3.6-2012-04-03_09-50-23.tar.gz and verified that it works correctly in that version
> SpellChecker and Dismax fail when using value from q containing hyphen
> ----------------------------------------------------------------------
>
> Key: SOLR-3300
> URL: https://issues.apache.org/jira/browse/SOLR-3300
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 3.5
> Reporter: Michael Long
> Fix For: 3.6
>
>
> Using a URL like this:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&defType=edismax&qt=dismax
> Returns an error:
> String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
> It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
> Yet if I instead use spellchecker.q, it works:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22&defType=edismax&qt=dismax
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-3300) SpellChecker and Dismax fail when
using value from q containing hyphen
Posted by "Michael Long (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Long updated SOLR-3300:
-------------------------------
Component/s: (was: SolrCloud)
> SpellChecker and Dismax fail when using value from q containing hyphen
> ----------------------------------------------------------------------
>
> Key: SOLR-3300
> URL: https://issues.apache.org/jira/browse/SOLR-3300
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 3.5
> Reporter: Michael Long
>
> Using a URL like this:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true
> Returns an error:
> String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
> It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
> Yet if I instead use spellchecker.q, it works:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Resolved] (SOLR-3300) SpellChecker and Dismax fail when
using value from q containing hyphen
Posted by "Hoss Man (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man resolved SOLR-3300.
----------------------------
Resolution: Fixed
Fix Version/s: 3.6
Michael, if you could, please try out a recent build of the 3x branch (soon to be released as Solr 3.6) to verify that this is in fact a dup -- if not, then by all means please re-open
> SpellChecker and Dismax fail when using value from q containing hyphen
> ----------------------------------------------------------------------
>
> Key: SOLR-3300
> URL: https://issues.apache.org/jira/browse/SOLR-3300
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 3.5
> Reporter: Michael Long
> Fix For: 3.6
>
>
> Using a URL like this:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&defType=edismax&qt=dismax
> Returns an error:
> String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
> It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
> Yet if I instead use spellchecker.q, it works:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22&defType=edismax&qt=dismax
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-3300) SpellChecker and Dismax fail when
using value from q containing hyphen
Posted by "Michael Long (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Long updated SOLR-3300:
-------------------------------
Component/s: spellchecker
Affects Version/s: 3.5
> SpellChecker and Dismax fail when using value from q containing hyphen
> ----------------------------------------------------------------------
>
> Key: SOLR-3300
> URL: https://issues.apache.org/jira/browse/SOLR-3300
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 3.5
> Reporter: Michael Long
>
> Using a URL like this:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true
> Returns an error:
> String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
> It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
> Yet if I instead use spellchecker.q, it works:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-3300) SpellChecker and Dismax fail when
using value from q containing hyphen
Posted by "Michael Long (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-3300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Long updated SOLR-3300:
-------------------------------
Description:
Using a URL like this:
http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&defType=edismax&qt=dismax
Returns an error:
String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
Yet if I instead use spellchecker.q, it works:
http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22&defType=edismax&qt=dismax
was:
Using a URL like this:
http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true
Returns an error:
String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
Yet if I instead use spellchecker.q, it works:
http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22
added &defType=edismax&qt=dismax to urls
> SpellChecker and Dismax fail when using value from q containing hyphen
> ----------------------------------------------------------------------
>
> Key: SOLR-3300
> URL: https://issues.apache.org/jira/browse/SOLR-3300
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 3.5
> Reporter: Michael Long
>
> Using a URL like this:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&defType=edismax&qt=dismax
> Returns an error:
> String index out of range: -6 java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.AbstractStringBuilder.replace(AbstractStringBuilder.java:793) at java.lang.StringBuilder.replace(StringBuilder.java:288) at org.apache.solr.spelling.SpellCheckCollator.getCollation(SpellCheckCollator.java:131) at org.apache.solr.spelling.SpellCheckCollator.collate(SpellCheckCollator.java:69) at org.apache.solr.handler.component.SpellCheckComponent.addCollationsToResponse(SpellCheckComponent.java:179) at org.apache.solr.handler.component.SpellCheckComponent.process(SpellCheckComponent.java:156) at
> It appears when the spellchecker takes the value from q, it is crashing when their is a hyphen.
> Yet if I instead use spellchecker.q, it works:
> http://localhost:8080/solr/select/?q=%22Haddington-Cobbs%22&spellcheck=true&spellcheck.q=%22Haddington-Cobbs%22&defType=edismax&qt=dismax
--
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org