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

Michael McCandless commented on LUCENE-1618:
--------------------------------------------

{quote}
> it might be cleaner to make a Directory impl that dispatches certain files to 
> a RAMDir and others to an FSDir

Good idea. I'll try that method first. If this one works out, then the API will 
be public?
{quote}

Which API would be public?

If this (call it "FileSwitchDirectory" for now ;) ) works then we would not add 
any API to IndexWriter (ie it's either or)?  But FileSwitchDirectory would be 
public & "expert".

One downside to this approach is it's brittle -- whenever we change file 
extensions you'd have to "know" to fix this Directory.  Or maybe we make the 
Directory specialized to only storing the doc stores in the FSDir, then 
whenever we change file formats we would fix this directory?  But in the 
future, with custom codecs, things could be named whatever... hmmm.  Lacking 
clarity.

> Allow setting the IndexWriter docstore to be a different directory
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1618
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1618
>             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: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to