mirror of
https://github.com/apache/lucene.git
synced 2025-03-08 01:25:19 +00:00
SOLR-698 -- SpellCheckComponent should use the queryString set in the ResponseBuilder before trying to use CommonParams.Q
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@685830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b69ba9a4c
commit
c80333e213
@ -127,7 +127,10 @@ public class SpellCheckComponent extends SearchComponent implements SolrCoreAwar
|
||||
//we have a spell check param, tokenize it with the query analyzer applicable for this spellchecker
|
||||
tokens = getTokens(q, spellChecker.getQueryAnalyzer());
|
||||
} else {
|
||||
q = params.get(CommonParams.Q);
|
||||
q = rb.getQueryString();
|
||||
if (q == null) {
|
||||
q = params.get(CommonParams.Q);
|
||||
}
|
||||
tokens = queryConverter.convert(q);
|
||||
}
|
||||
if (tokens != null && tokens.isEmpty() == false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user