[ https://issues.apache.org/jira/browse/LUCENE-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12704628#action_12704628 ]
Michael McCandless commented on LUCENE-1313: -------------------------------------------- {quote} Perhaps the best way to make this clean is to keep the ram merge policy and real dir merge policies different? That way we don't merge policy implementations don't need to worry about ram and non-ram dir cases. {quote} OK tentatively this feels like a good approach. Would you re-use MergePolicy, or make a new RAMMergePolicy? Would we use the same MergeScheduler to then execute the selected merges? How would we handle the "it's time to flush some RAM to disk" case? Would RAMMergePolicy make that decision? bq. Perhaps an IW.updatePendingRamMerges method should be added that handles this separately? Yes? bq. Does the ram dir ever need to worry about things like maxNumSegmentsOptimize and optimize? No? {quote} I think having the ram merge policy should cover the reasons I had for having a separate ram writer. Although the IW.addWriter method I implemented would not have blocked, but I don't think it's necessary now if we have a separate ram merge policy. {quote} OK good. > Realtime Search > --------------- > > Key: LUCENE-1313 > URL: https://issues.apache.org/jira/browse/LUCENE-1313 > Project: Lucene - Java > Issue Type: New Feature > Components: Index > Affects Versions: 2.4.1 > Reporter: Jason Rutherglen > Priority: Minor > Fix For: 2.9 > > Attachments: LUCENE-1313.jar, LUCENE-1313.patch, LUCENE-1313.patch, > LUCENE-1313.patch, LUCENE-1313.patch, lucene-1313.patch, lucene-1313.patch, > lucene-1313.patch, lucene-1313.patch > > > Realtime search with transactional semantics. > Possible future directions: > * Optimistic concurrency > * Replication > Encoding each transaction into a set of bytes by writing to a RAMDirectory > enables replication. It is difficult to replicate using other methods > because while the document may easily be serialized, the analyzer cannot. > I think this issue can hold realtime benchmarks which include indexing and > searching concurrently. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org