Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-6024

StatsComponent does not work for docValues enabled multiValued fields

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      Harish Agarwal reported this in solr user mailing list : http://search-lucene.com/m/QTPaoTJXV1

      It is east to re-produce with default example solr setup. Following types are added example schema.xml. And exampledocs are indexed.

       <field name="cat" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>
        <field name="popularity" type="int" indexed="true" stored="false" docValues="true" multiValued="true"/>
      

      When docValues="true" and multiValued="true" are used at the same time, StatsComponent throws :

      ERROR org.apache.solr.core.SolrCore  – org.apache.solr.common.SolrException: Type mismatch: popularity was indexed as SORTED_SET
      	at org.apache.solr.request.UnInvertedField.<init>(UnInvertedField.java:193)
      	at org.apache.solr.request.UnInvertedField.getUnInvertedField(UnInvertedField.java:699)
      	at org.apache.solr.handler.component.SimpleStats.getStatsFields(StatsComponent.java:319)
      	at org.apache.solr.handler.component.SimpleStats.getStatsCounts(StatsComponent.java:290)
      	at org.apache.solr.handler.component.StatsComponent.process(StatsComponent.java:78)
      	at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:221)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
      	at org.apache.solr.core.SolrCore.execute(SolrCore.java:1964)
      

      Attachments

        1. SOLR-6024-trunk.patch
          10 kB
          Tomas Eduardo Fernandez Lobbe
        2. SOLR-6024-trunk.patch
          15 kB
          Tomas Eduardo Fernandez Lobbe
        3. SOLR-6024-trunk.patch
          16 kB
          Tomas Eduardo Fernandez Lobbe
        4. SOLR-6024-trunk.patch
          18 kB
          Tomas Eduardo Fernandez Lobbe
        5. SOLR-6024-trunk.patch
          25 kB
          Vitaliy Zhovtyuk
        6. SOLR-6024-branch_4x.patch
          37 kB
          Tomas Eduardo Fernandez Lobbe
        7. SOLR-6024.patch
          5 kB
          Vitaliy Zhovtyuk
        8. SOLR-6024.patch
          16 kB
          Vitaliy Zhovtyuk

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tflobbe Tomas Eduardo Fernandez Lobbe
            iorixxx Ahmet Arslan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment