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

Michael McCandless commented on LUCENE-2891:
--------------------------------------------

-1 means "don't load terms index because I will never, ever seek-by-Term".  As 
far as I know, it's only segment merging that does this...

Maybe we shouldn't allow it for IR.open?  Though, eg if you want to pass the 
reader to addIndexes (say), opening with -1 should work...

> IndexWriterConfig does not allow termInfosDivisor to be -1, while the latest 
> indicates TermInfos should not be loaded
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-2891
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2891
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2891.patch
>
>
> While you can pass -1 to IR.open(), and it's documented, you cannot do the 
> same for IndexWriter's readers (b/c IWC blocks it). Need to allow this 
> setting as well as add support for it in our tests, e.g. we should randomly 
> set it to -1. Robert also suggested RandomIW use -1 randomly when it opens 
> readers.
> I'll work on a patch

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to