You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "James Dyer (JIRA)" <ji...@apache.org> on 2017/10/30 13:35:00 UTC
[jira] [Commented] (SOLR-11544) spell-check does not return
collations when using search query with filter
[ https://issues.apache.org/jira/browse/SOLR-11544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16224966#comment-16224966 ]
James Dyer commented on SOLR-11544:
-----------------------------------
I reviewed the thread on the user's list and am not sure why you are having the problem. If I try something similar (using a different version of solr), I get the expected response:
bq. /select?wt=json&indent=true&q=tag:porq&spellcheck=true&spellcheck.dictionary=spellchecker&spellcheck.count=20&spellcheck.collate=true
{code}
{
"responseHeader": {
"status": 0,
"QTime": 8,
"params": {
"q": "tag:porq",
"spellcheck.dictionary": "spellchecker",
"indent": "true",
"spellcheck": "true",
"spellcheck.count": "20",
"wt": "json",
"spellcheck.collate": "true"
}
},
"response": {
"numFound": 0,
"start": 0,
"docs": [ ]
},
"spellcheck": {
"suggestions": [
"porq",
{
"numFound": 20,
"startOffset": 4,
"endOffset": 8,
"suggestion": [
"port",
"pork",
...etc...
]
},
"collation",
"tag:port"
]
}
}
{code}
Could you write a failing unit test for this? See https://github.com/apache/lucene-solr/blob/master/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java for some of the existing test cases around this functionality. Without a failing unit test, I am not sure there is anything to do.
A workaround you can use is to use "spellcheck.q=polt" and then reconstruct the query in your application.
> spell-check does not return collations when using search query with filter
> --------------------------------------------------------------------------
>
> Key: SOLR-11544
> URL: https://issues.apache.org/jira/browse/SOLR-11544
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 6.3
> Reporter: jIraiya
> Priority: Trivial
>
> Please refer to this thread for more information:
> http://lucene.472066.n3.nabble.com/spell-check-does-not-return-collations-when-using-search-query-with-filter-td4357739.html
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org