Hi,
This is probably a very basic question but how do I get the returned
collations.
My spell check request is
http://localhost:8983/solr/autocomplete/select?spellcheck.q=ipood%20tough&spellcheck=true&spellcheck.collate=true&spellcheck.build=true&spellcheck.maxCollations=3&rows=3&spellcheck.cou
I am using solrJ.
Here is what my method looks like.
List suggestedTermsList = new ArrayList();
if(aQueryResponse == null) {
return suggestedTermsList;
}
try {
SpellCheckResponse spellCheckResponse =
aQueryResponse.getSpellCheckResponse();
if(spellCheckResponse ==
spellcheck.collateExtendedResults = true seems to have sorted my problem.
My other parameters are:
spellcheck = true
spellcheck.count = aNumResults
spellcheck.q = SEARCH TEXT
spellcheck.build= true
spellcheck.collate= true
spellcheck.maxCollations= 4
spellcheck.collateExtendedResults = true