[ https://issues.apache.org/jira/browse/SOLR-2491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Dyer updated SOLR-2491: ----------------------------- Attachment: SOLR-2491.patch This patch fixes the problem & includes a unit test. This patch simply removes the "group" parameter from any test queries prior to running them. Note that the # of hits for each collation returned will always be the # of _ungrouped_ hits. This is consistent with the fact that FieldCollapsing is unable to tell us the number of grouped hits. It is a bit disturbing to me how brittle getting the # of hits back via "toLog" has proven to be. If someone can point to a less breakable way to do this it would be appreciated. > spellcheck.maxCollationTries breaks when using FieldCollapsing > -------------------------------------------------------------- > > Key: SOLR-2491 > URL: https://issues.apache.org/jira/browse/SOLR-2491 > Project: Solr > Issue Type: Bug > Components: spellchecker > Affects Versions: 4.0 > Reporter: James Dyer > Priority: Minor > Fix For: 4.0 > > Attachments: SOLR-2491.patch > > > If specifying "spellcheck.maxCollationTries" and "group=true" on the same > query, you never get any Spell Check Collations back. The problem is that > SpellCheckCollator relies on ResponseBuilder.getToLog().get("hits") to see > how many results each test query returns. When "group=true", the "toLog" > isn't populated so SpellCheckCollator is unable to find a collation that can > return results. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org