Solr
  1. Solr
  2. SOLR-2976

stats.facet no longer works on single valued trie fields that don't use precision step

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.5
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      As reported on the mailing list, 3.5 introduced a regression that prevents single valued Trie fields that don't use precision steps (to add course grained terms) from being used in stats.facet.

      two immediately obvious problems...

      1) in 3.5 the stats component is checking if isTokenzed() is true for the field type (which is probably wise) but regardless of the precisionStep used, TrieField.isTokenized is hardcoded to return true

      2) the 3.5 stats faceting will fail if the FieldType is multivalued - it doesn't check if the SchemaField is configured to be single valued (overriding the FieldType)

      so even if a user has something like this in their schema...

      <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" />
      <field name="ts" type="long" indexed="true" stored="true" required="true" multiValued="false" />
      

      ...stats.facet will not work.

      1. SOLR-2976_3.4_test.patch
        6 kB
        Hoss Man
      2. SOLR-2976.patch
        13 kB
        Robert Muir
      3. SOLR-2976.patch
        14 kB
        Hoss Man

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Hoss Man
            • Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:

                Development