lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENE-2891) IndexWriterConfig does not allow readerTermsIndexDivisor to be -1, while the latest indicates the terms index should not be loaded
Date Thu, 27 Jan 2011 20:11:49 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shai Erera resolved LUCENE-2891.
--------------------------------

    Resolution: Fixed

Committed revision 1064255 (3x).
Committed revision 1064285 (trunk).

Merge to trunk was not so easy. testNoTermsIndex had to use different API than in 3x (which
is ok), but the it turns out few Codecs don't honor the -1 setting, like PreFlex and SimpleText.
Surprisingly, MockRandom also fails. I put all of them into an illegalCodecs Set and if that's
what the test draws, the test does not continue and succeeds.

I'll open a separate issue to check why MockRandomCodec fails the test (i.e., why doesn't
it honor the -1 setting).

> IndexWriterConfig does not allow readerTermsIndexDivisor to be -1, while the latest indicates
the terms index 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, LUCENE-2891.patch, 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message