[ https://issues.apache.org/jira/browse/SOLR-4215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13535804#comment-13535804 ]
Adrien Grand commented on SOLR-4215: ------------------------------------ Hi Ryan. I think this test should be done on every segment rather than on the top-level composite reader, because if the index has several segments, {{terms(field)}} will return a MultiTerms instance whose {{size()}} method always returns -1? > Optimize facets when multi-valued field is really single valued > --------------------------------------------------------------- > > Key: SOLR-4215 > URL: https://issues.apache.org/jira/browse/SOLR-4215 > Project: Solr > Issue Type: Improvement > Components: SearchComponents - other > Reporter: Ryan McKinley > Priority: Minor > Fix For: 4.1 > > Attachments: SOLR-4215-check-single-valued.patch > > > In lucene 4+, the Terms interface can quickly tell us if the index is > actually single-valued. We should use that for better facet performance with > multi-valued fields (when they are actually single valued) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators 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