lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-5730) make Lucene's SortingMergePolicy and EarlyTerminatingSortingCollector configurable in Solr
Date Tue, 26 Jan 2016 16:52:39 GMT

    [ https://issues.apache.org/jira/browse/SOLR-5730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15117549#comment-15117549
] 

Shai Erera edited comment on SOLR-5730 at 1/26/16 4:51 PM:
-----------------------------------------------------------

I was hoping that we'd change solrconfig.xml to support something like a <mergepolicy>
element which will allow you to define a nested MP. That way one can define SortingMergePolicy
by an element like that:

{noformat}
<mergepolicy class="solr.SortingMergePolicy">
  <params>
    <sort>f1 desc, f2 asc ... </sort>
  </param>
  <mergepolicy class="solr.TieredMergePolicy">
  </mergepolicy>
</mergepolicy>
{noformat}

This would allow us to define any "wrapper" MPs in a more general way. What do you think?


was (Author: shaie):
I was hoping that we'd change solrconfig.xml to support something like a <mergepolicy>
element which will allow you to define a nested MP. That way one can define SortingMergePolicy
by an element like that:

{noformat}
<mergepolicy class="solr.SortingMergePolicy">
  <params>
    <sort>f1 desc, f2 asc ... </sort>
  </param>
  <mergepolicy class="solr.TieredMergePolicy">
  </mergepolicy>
</mergepolicy>
{nofromat}

This would allow us to define any "wrapper" MPs in a more general way. What do you think?

> make Lucene's SortingMergePolicy and EarlyTerminatingSortingCollector configurable in
Solr
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-5730
>                 URL: https://issues.apache.org/jira/browse/SOLR-5730
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: SOLR-5730-part1of2.patch, SOLR-5730-part1of2.patch, SOLR-5730-part2of2.patch,
SOLR-5730-part2of2.patch
>
>
> *Example configuration (solrconfig.xml):*
> {noformat}
> <sortMerges enable="true">
>   <str name="sort">timestamp desc</str>
> </sortMerges>
> {noformat}
> *Example use (EarlyTerminatingSortingCollector):*
> {noformat}
> &sort=timestamp+desc&segmentTerminateEarly=true
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message