Quantcast

[jira] [Commented] (LUCENE-7688) add a OneMergeWrappingMergePolicy class

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (LUCENE-7688) add a OneMergeWrappingMergePolicy class

JIRA jira@apache.org

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

Keith Laban commented on LUCENE-7688:
-------------------------------------

Hi Michael, the main use case is easily overaload the {{wrapForMerge}} function in {{OneMerge}} without having write a whole merge policy. The required ticket SOLR-10046 uses it to wrap the CodecReader with one that has access to FeildCache and will add docvalues when merging segments if required. But generally you can do anything you can do by wrapping a CodeReader, add/remove fields, etc.

> add a OneMergeWrappingMergePolicy class
> ---------------------------------------
>
>                 Key: LUCENE-7688
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7688
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: LUCENE-7688.patch
>
>
> This ticket splits out the lucene part of the changes proposed in SOLR-10046 for a conversation on whether or not the {{OneMergeWrappingMergePolicy}} class would best be located in Lucene or in Solr.
> (As an aside, the proposed use of [java.util.function.UnaryOperator|https://docs.oracle.com/javase/8/docs/api/java/util/function/UnaryOperator.html] causes {{ant documentation-lint}} to fail, I have created LUCENE-7689 separately for that.)



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...