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

Jack Krupansky commented on SOLR-5730:
--------------------------------------

Sorry for arriving so late to the party here, but I've gotten lost in all the 
back and forth... is there going to be a simple and easy to use XML element to 
let the user simply enable sort merge and specify a field list, as opposed to 
having to manually construct an elaborate Lucene-level set of wrapped merge 
policies? I mean, sure, some experts will indeed wish to fully configure every 
detail of a Lucene merge policy, but for non-expert users who just want to 
assure that their index is pre-sorted to align with a query sorting, the syntax 
should be... simple. If the user does construct some elaborate wrapped MP, then 
some sort of parameter substitution would be needed, but if the user uses the 
default solrconfig which has no explicit MP, Solr should build that full, 
wrapped MP with just the sort field names substituted.

In short, I just wanted to know whether this was intended to be a very easy to 
use feature (supposed to be the trademark of Solr) or some super-elaborate 
expert-only feature that we would be forced to recommend that average users 
stay away from.

Personally, my preference would be to focus on introducing a first-class Solr 
feature of a "preferred document order", which is effectively a composite 
primary key in database nomenclature.

So, let's not forget that this is Solr we are talking about, not raw Lucene.

I'd like to know that [~yo...@apache.org] and [~hossman] are explicitly on 
board with what is bring proposed.

> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to