You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2013/07/13 15:25:48 UTC

[jira] [Commented] (SOLR-5039) Admin UI displays -1 for term count in multiValued fields

    [ https://issues.apache.org/jira/browse/SOLR-5039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13707730#comment-13707730 ] 

Robert Muir commented on SOLR-5039:
-----------------------------------

I still think it woudl be significantly better to show this kind of information per-segment than to enumerate terms: which doesnt work and can kill the server if you have many many terms.
                
> Admin UI displays -1 for term count in multiValued fields
> ---------------------------------------------------------
>
>                 Key: SOLR-5039
>                 URL: https://issues.apache.org/jira/browse/SOLR-5039
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Erick Erickson
>            Assignee: Erick Erickson
>            Priority: Minor
>         Attachments: SOLR-5039.patch
>
>
> I thought this had been a JIRA before, but I couldn't find it. Problem is that LukeRequestHandler.getDetailedFieldInfo gets the count by this line:
> tiq.distinctTerms = new Long(terms.size()).intValue();
> which is -1 at least for multiValued fields. I'll attach a patch in a second that just counts things up. It worked last night, but it was late.
> I obviously don't understand what's up with MultiTerms.size() is hard-coded to return -1. Can anyone shed light on this? Or see the two-line change and see if it makes sense?

--
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org