lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-1618) Allow setting the IndexWriter docstore to be a different directory
Date Mon, 27 Apr 2009 21:02:31 GMT


Michael McCandless commented on LUCENE-1618:

Yeah I also think this should be an "under the hood" (done only by NRT) optimization inside

The only possible non-NRT case I can think of is when users make temporary indices in RAM,
it's possible one would want to write the docStore files to an FSDirectory (because they are
so large) but keep postings, norms, deletes, etc in RAM.  But going down that road opens up
a can of worms... eg does segments_N somehow have to keep track of which dir has which parts
of a segment?  Suddenly IndexReader must also know to look in different dirs for different
parts of a segment, etc.

it might be cleaner to make a Directory impl that dispatches certain files to a RAMDir and
others to an FSDir, so IndexWriter/IndexReader still see a single Directory API.

> Allow setting the IndexWriter docstore to be a different directory
> ------------------------------------------------------------------
>                 Key: LUCENE-1618
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 2.4.1
>            Reporter: Jason Rutherglen
>            Priority: Minor
>             Fix For: 2.9
>   Original Estimate: 336h
>  Remaining Estimate: 336h
> Add an IndexWriter.setDocStoreDirectory method that allows doc
> stores to be placed in a different directory than the IW default
> dir.

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:
For additional commands, e-mail:

View raw message