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

SortingMergePolicy: test coverage for dual-field sort

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.1, main (10.0)
    • None
    • None

    Description

      SOLR-5730 previously made Lucene's SortingMergePolicy configurable in Solr.

      The sort criteria could be (say) timestamp_i_dvo desc or (say) timestamp_i_dvo desc, id desc with the latter using the unique document key to ensure deterministic sorting.

      See e.g. https://github.com/apache/solr/blob/releases/solr/9.0.0/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java#L193 and https://github.com/apache/solr/blob/releases/solr/9.0.0/solr/core/src/java/org/apache/solr/search/EarlyTerminatingSortingCollector.java#L55-L67 w.r.t. segmentTerminateEarly logic detail i.e. single-field sort=timestamp_i_dvo desc could be used if the merge policy has dual-field timestamp_i_dvo desc, id desc but dual-field sort requires dual-field merge policy.

      Attachments

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 20m
                  20m