Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-9971

Inconsistent SSDVFF and Taxonomy facet behavior in case of unseen dimension

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.0
    • None
    • None
    • New

    Description

      Unlike other org.apache.lucene.facet.Facet interface implementations, SortedSetDocValuesFacetCounts and ConcurrentSortedSetDocValuesFacetCounts throw an exception in case of unseen dimension in the getTopChildren() method  

      It is inconsistent with Facet interface documentation and not pleasant to deal with: in our case requested dimensions can be manually specified by the user, so we should always catch that and check the exception message to be sure of the exact cause.

      During the PR review, it was also decided to make similar changes for Taxonomy implementation.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sqshq Alexander Lukyanchikov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m