RE: SpellCheck Print Multiple Collations

2011-09-22 Thread Kudzanai
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

RE: SpellCheck Print Multiple Collations

2011-09-22 Thread Dyer, James
set it at least to whatever value you've got for "maxCollations", possibly a few higher. James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -Original Message- From: Kudzanai [mailto:kudzanai.vudzij...@gmail.com] Sent: Thursday, September 22, 2011 9:20

RE: SpellCheck Print Multiple Collations

2011-09-22 Thread Kudzanai
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 ==

RE: SpellCheck Print Multiple Collations

2011-09-22 Thread Dyer, James
If using SolrJ, use QueryResponse.getSpellCheckResponse().getCollatedResults() . This returns a List . On each Collation object, getCollationQueryString() will return the corrected queries. Note that unless you specify "spellcheck.maxCollationTries", the collations might not return anythin