[ https://issues.apache.org/jira/browse/SOLR-5730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15128656#comment-15128656 ]
Hoss Man commented on SOLR-5730: -------------------------------- I think the direction being taken in SOLR-8621 looks like a good idea in general for better configuring/modeling the true state of things internally as far as merge policies are concerned. I think it also makes sense to somewhat put this issue (SOLR-5730) on hold until some of those plumbing related questions are resolved. ultimately, i suspect using SortingMergePolicy is an advanced enough option that if it requires some non-trivial config then so be it -- we can document what that config looks like and provide common recipes with clear instructions of what key knobs/values users have to consider to use those recipes. If, ultimately, we decide that the "full syntax" for specifying a merge policy with SortingMergePolicy warpper is overly verbose for basic users, and we _also_ want some simplified way for users to say "use whatever default (merge policy) Solr thinks is best, but please sort docs on disk like this..." then that can always be added as syntactic sugar later. > 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) - corresponding to latest attached > patch:* > {noformat} > <sortMerges enable="true"> > <str name="sort">timestamp desc</str> > </sortMerges> > {noformat} > *Example configuration (solrconfig.xml) - corresponding to current > (work-in-progress master-solr-8621) SOLR-8621 efforts:* > {noformat} > -<mergePolicy class="TieredMergePolicy"/> > +<mergePolicyFactory class="SortingMergePolicyFactory"> > + <str name="in">TieredMergePolicyFactory</str> > + <str name="sort">timestamp desc</str> > +</mergePolicyFactory> > {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