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

Steven Rowe commented on LUCENE-2960:
-------------------------------------

{quote}
bq. How about an IWC base class, extended by IWCinit and IWClive. IWCinit has 
setters for everything, and IW.getConfig() returns IWClive, which has no 
setters for things you can't set on the fly.

I tried to implement this, but couldn't figure out a way to avoid code and 
javadoc duplication and/or separation for the live setters, which need to be on 
both the init and live versions.
{quote}

An annotation processor that looks for @Live annotations on setters, then 
generates source for a LiveIWC class, an instance of which would be returned by 
IW.getConfig(), would solve the duplication/separation problem.  No extension 
required: LiveIWC could forward all getters and the live setters to a cloned 
IWC.

> Allow (or bring back) the ability to setRAMBufferSizeMB on an open IndexWriter
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-2960
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2960
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>            Reporter: Shay Banon
>            Priority: Blocker
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2960.patch
>
>
> In 3.1 the ability to setRAMBufferSizeMB is deprecated, and removed in trunk. 
> It would be great to be able to control that on a live IndexWriter. Other 
> possible two methods that would be great to bring back are 
> setTermIndexInterval and setReaderTermsIndexDivisor. Most of the other 
> setters can actually be set on the MergePolicy itself, so no need for setters 
> for those (I think).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Reply via email to