[
https://issues.apache.org/jira/browse/SOLR-606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608770#action_12608770
]
Geoffrey Young commented on SOLR-606:
-------------------------------------
results with your patch applied:
{noformat}
{
"responseHeader":{
"status":0,
"QTime":24283},
"command":"build",
"response":{"numFound":0,"start":0,"docs":[]
},
"spellcheck":{
"suggestions":[
"queryConversion",[
"token",[
"text","redbull",
"start",0,
"end",7],
"token",[
"text","air",
"start",8,
"end",11],
"token",[
"text","show",
"start",12,
"end",16]],
"redbull",[
"numFound",1,
"startOffset",0,
"endOffset",7,
"origFreq",0,
"suggestion",{
"frequency":1,
"word":"redbelly"}],
"show",[
"numFound",1,
"startOffset",12,
"endOffset",16,
"origFreq",0,
"suggestion",{
"frequency":1,
"word":"shot"}],
"correctlySpelled",false,
"collation","redbelly airshotw"]}}
{noformat}
and with spellcheck.q defined it's
{noformat}
{
"responseHeader":{
"status":0,
"QTime":20,
"params":{
"echoParams":"all",
"indent":"on",
"echoParams":"all",
"indent":"on",
"spellcheck.extendedResults":"true",
"q":"redbull air show",
"spellcheck.q":"redbull air show",
"spellcheck.collate":"true",
"spellcheck":"true",
"wt":"json"}},
"response":{"numFound":0,"start":0,"docs":[]
},
"spellcheck":{
"suggestions":[
"queryConversion",[
"token",[
"text","redbull air show",
"start",0,
"end",0]],
"redbull air show",[
"numFound",1,
"startOffset",0,
"endOffset",0,
"origFreq",0,
"suggestion",{
"frequency":1,
"word":"redbull singers"}],
"correctlySpelled",false,
"collation","redbull singersredbull air show"]}}
{noformat}
> spellcheck.colate doesn't handle multiple tokens properly
> ---------------------------------------------------------
>
> Key: SOLR-606
> URL: https://issues.apache.org/jira/browse/SOLR-606
> Project: Solr
> Issue Type: Bug
> Components: spellchecker
> Affects Versions: 1.3
> Environment: tomcat
> Reporter: Geoffrey Young
> Assignee: Grant Ingersoll
> Priority: Minor
> Attachments: SOLR-606.patch
>
>
> originally posted as part of SOLR-572:
>
> https://issues.apache.org/jira/browse/SOLR-572?focusedCommentId=12608487#action_12608487
> the new spellcheck.collate feature seems to exhibit some strange behaviors
> when handed a query with multiple tokens.
> {noformat}
> {
> "responseHeader":{
> "params":{
> "q":"redbull air show"}},
> "spellcheck":{
> "suggestions":[
> "redbull",[
> "suggestion",["redbelly"]],
> "show",[
> "suggestion",["shot"]],
> "collation","redbelly airshotw"]}}
> {noformat}
> in this case, note the fields are incorrectly concatenated (no space between
> tokens, left over 'w' from input string)
> {noformat}
> {
> "responseHeader":{
> "params":{
> "q":"redbull air show",
> "spellcheck.q":"redbull air show"}},
> "spellcheck":{
> "suggestions":[
> "redbull air show",[
> "suggestion",["redbull singers"]],
> "collation","redbull singersredbull air show"]}}
> {noformat}
> this is slightly different - the suggestions are still concatenated without a
> space, but the collation is way off.
> --Geoff
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.