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] Created: (LUCENE-2895) MockRandomCodec loads termsIndex even if termsIndexDivisor is set to -1
Date Thu, 27 Jan 2011 20:18:44 GMT
MockRandomCodec loads termsIndex even if termsIndexDivisor is set to -1
-----------------------------------------------------------------------

                 Key: LUCENE-2895
                 URL: https://issues.apache.org/jira/browse/LUCENE-2895
             Project: Lucene - Java
          Issue Type: Bug
          Components: Codecs
            Reporter: Shai Erera
             Fix For: 4.0


When working on LUCENE-2891 (on trunk), I found out that if MockRandomCodec is used, then
setting IWC.readerTermsIndexDivisor to -1 allows seeking e.g., termDocs, when it shouldn't.
Other Codecs fail to seek, as expected by the test. We need to find out why MockRandomCodec
does not fail as expected.

To verify that, run "ant test-core -Dtestcase=TestIndexWriterReader -Dtestmethod=testNoTermsIndex
-Dtests.codec=MockRandom", but comment out the line which adds MockRandom to the list of illegal
codecs in the test.

-- 
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