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

Lance Norskog commented on LUCENE-2528:
---------------------------------------

This patch has two problems:
1) CFSFileDirectory is in o.a.l.index instead of o.a.l.store because it uses 
SegmenInfo.commit(), which is not public. 
2) It uses a hacky way to get the number of documents in the index.
3) It does not know how to get the codec, and so defaults to StandardCodec.

The right way to fix #2 and #3 is to add the information to the compound file 
header.  



> CFSFileDirectory: Allow a Compound Index file to be deployed as a complete 
> index without segment files
> ------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2528
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2528
>             Project: Lucene - Java
>          Issue Type: New Feature
>            Reporter: Lance Norskog
>            Priority: Minor
>         Attachments: LUCENE-2528.patch
>
>
> This patch presents a compound index file as a Lucene Directory class. This 
> allows you to deploy one file to a query server instead of deploying a 
> directory with the compound file and two segment files.

-- 
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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to