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

make Lucene's SortingMergePolicy and EarlyTerminatingSortingCollector configurable in Solr

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 6.0
    • None
    • None

    Description

      Example configuration (solrconfig.xml) :

      -<mergePolicy class="TieredMergePolicy"/>
      +<mergePolicyFactory class="org.apache.solr.index.SortingMergePolicyFactory">
      +  <str name="wrapped.prefix">in</str>
      +  <str name="in.class">org.apache.solr.index.TieredMergePolicyFactory</str>
      +  <str name="sort">timestamp desc</str>
      +</mergePolicyFactory>
      

      Example use (EarlyTerminatingSortingCollector):

      &sort=timestamp+desc&segmentTerminateEarly=true
      

      Attachments

        1. SOLR-5730-part1and2.patch
          42 kB
          Christine Poerschke
        2. SOLR-5730-part1and2.patch
          44 kB
          Christine Poerschke
        3. SOLR-5730-part1of2.patch
          15 kB
          Christine Poerschke
        4. SOLR-5730-part1of2.patch
          53 kB
          Christine Poerschke
        5. SOLR-5730-part2of2.patch
          36 kB
          Christine Poerschke
        6. SOLR-5730-part2of2.patch
          28 kB
          Christine Poerschke

        Issue Links

          Activity

            People

              cpoerschke Christine Poerschke
              cpoerschke Christine Poerschke
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: