madrob commented on PR #989:
URL: https://github.com/apache/lucene/pull/989#issuecomment-1168939508
Both the old index in d64900e and the regenerated index in f158be9 came off
of branch_8_11, and more specifically the 8.11.2 release tag. I don't
understand why they are different though. Old index was generated using
commands in the release wizard and copied over from the commit in 963814fc454,
regenerated index was built by running directly running `ant`, then zipped.
The error that we get with the "bad" index can be reproduced on `d64900e`
with `./gradlew test --tests TestBackwardsCompatibility.testSortedIndex`
```
org.apache.lucene.backward_index.TestBackwardsCompatibility >
testSortedIndex FAILED
java.lang.AssertionError
at
__randomizedtesting.SeedInfo.seed([80EE95A3F6D9343B:F771F355CE204DEF]:0)
at [email protected]/org.junit.Assert.fail(Assert.java:87)
at [email protected]/org.junit.Assert.assertTrue(Assert.java:42)
at [email protected]/org.junit.Assert.assertTrue(Assert.java:53)
at
org.apache.lucene.backward_index.TestBackwardsCompatibility.searchExampleIndex(TestBackwardsCompatibility.java:2179)
at
org.apache.lucene.backward_index.TestBackwardsCompatibility.testSortedIndex(TestBackwardsCompatibility.java:2148)
```
The test code in question is these lines:
```
topDocs = searcher.search(new TermQuery(new Term("body", "the")), 5);
assertTrue(topDocs.totalHits.value > 0);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]