[ https://issues.apache.org/jira/browse/LUCENE-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702496#action_12702496 ]
Jason Rutherglen commented on LUCENE-1313: ------------------------------------------ For this patch I'm debating whether to add a package protected IndexWriter.addIndexWriter method. The problem is, the RAMIndex blocks on the write to disk during IW.addIndexesNoOptimize which if we're using ConcurrentMergeScheduler shouldn't happen? Meaning in this proposed solution, if segments keep on piling up in RAMIndex, we simply move them over to the disk IW which will in the background take care of merging them away and to disk. I don't think it's necessary to immediately write ram segments to disk (like the current patch does), instead it's possible to simply copy segments over from the incoming IW, leave them in RAM and they can be merged to disk as necessary? Then on IW.flush any segmentinfo(s) that are not from the current directory can be flushed to disk? Just thinking out loud about this. > 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