Solr
  1. Solr
  2. SOLR-5039

Admin UI displays -1 for term count in multiValued fields

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4, master
    • Component/s: None
    • Labels:
      None

      Description

      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?

      1. SOLR-5039.patch
        1 kB
        Erick Erickson

        Activity

        Erick Erickson created issue -
        Erick Erickson made changes -
        Field Original Value New Value
        Attachment SOLR-5039.patch [ 12592145 ]
        Erick Erickson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 5.0 [ 12321664 ]
        Fix Version/s 4.4 [ 12324324 ]
        Resolution Fixed [ 1 ]
        Steve Rowe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Erick Erickson
            Reporter:
            Erick Erickson
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development