Solr
  1. Solr
  2. SOLR-7522

Implement single-valued faceting on numeric fields

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1
    • Fix Version/s: 5.2
    • Component/s: Facet Module
    • Labels:
      None

      Description

      The underlying issue is SOLR-7521, a Lucene 5 bug / "feature" that prevents a string index view of an indexed numeric field.

      This issue will address SOLR-7496 for single valued numeric fields.

      1. SOLR-7522.patch
        29 kB
        Yonik Seeley

        Activity

        Hide
        Yonik Seeley added a comment -

        Here's a patch that adds FacetFieldProcessorNumeric that uses the new slot accumulator resize ability in conjunction with a hash table.

        • Numeric values are hashed to slots.
        • re-hash reassigns slots in all accumulators
        • added support for custom index-order sorting accumulator
        • added support for custom counting accumulators (one example is the hash table keeps the count itself)
        Show
        Yonik Seeley added a comment - Here's a patch that adds FacetFieldProcessorNumeric that uses the new slot accumulator resize ability in conjunction with a hash table. Numeric values are hashed to slots. re-hash reassigns slots in all accumulators added support for custom index-order sorting accumulator added support for custom counting accumulators (one example is the hash table keeps the count itself)
        Hide
        ASF subversion and git services added a comment -

        Commit 1678535 from Yonik Seeley in branch 'dev/trunk'
        [ https://svn.apache.org/r1678535 ]

        SOLR-7522: single valued numeric field faceting

        Show
        ASF subversion and git services added a comment - Commit 1678535 from Yonik Seeley in branch 'dev/trunk' [ https://svn.apache.org/r1678535 ] SOLR-7522 : single valued numeric field faceting
        Hide
        ASF subversion and git services added a comment -

        Commit 1678536 from Yonik Seeley in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1678536 ]

        SOLR-7522: single valued numeric field faceting

        Show
        ASF subversion and git services added a comment - Commit 1678536 from Yonik Seeley in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1678536 ] SOLR-7522 : single valued numeric field faceting
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Yonik Seeley
            Reporter:
            Yonik Seeley
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development