[jira] [Commented] (SOLR-4215) Optimize facets when multi-valued field is really single valued

2012-12-19 Thread Adrien Grand (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=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



[jira] [Commented] (SOLR-4215) Optimize facets when multi-valued field is really single valued

2012-12-19 Thread Robert Muir (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-4215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13535892#comment-13535892
 ] 

Robert Muir commented on SOLR-4215:
---

also values of -1 should be checked regardless.

 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