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:
Shalin Shekhar Mangar 2008-08-14 09:21:31 +00:00
parent 1b69ba9a4c
commit c80333e213

View File

@ -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) {