Commit Graph

35812 Commits

Author SHA1 Message Date
Adrien Grand 28d3adcf69 Add version 9.1.0. 2022-03-22 15:43:27 +01:00
Adrien Grand 0a3bad5985 DOAP changes for release 9.1.0 2022-03-22 15:22:27 +01:00
Alan Woodward 42bf77229e LUCENE-10422: Make errorprone happy 2022-03-22 09:18:27 +00:00
Tomoko Uchida fa61953afd
LUCENE-10478: mark Test4GBStoredFields as @Monster (#757) 2022-03-22 17:58:05 +09:00
mogui be99178956
LUCENE-10422: Read-only monitor implementation (#679)
This commit adds a read-only monitor implementation that can
search the QueryIndex of another monitor without supporting adding
new queries.
2022-03-21 16:42:03 +00:00
Adrien Grand f239c0e03c
LUCENE-10473: Make tests a bit faster when running nightly. (#754) 2022-03-21 10:37:57 +01:00
Julie Tibshirani a4b30b4cf4 LUCENE-9905: Fix check in TestPerFieldKnnVectorsFormat#testMergeUsesNewFormat
Before the assertion checked if two sets were equal, which resulted in rare
failures. Now we use 'contains' from hamcrest matchers.
2022-03-18 15:38:30 -07:00
Julie Tibshirani 18f9d31608 LUCENE-9614: Fix rare TestKnnVectorQuery failures
Some of our checks relied on doc IDs corresponding to the order in which docs
were passed to IndexWriter. This is fragile and sometimes resulted in failures.
Now we check against an "id" field instead.
2022-03-18 14:52:00 -07:00
Luca Cavanna bb7568d865
LUCENE-10472: Fix TestMatchAllDocsQuery#testEarlyTermination (#753)
As part of #716 I moved the test to use a collector manager, but I forgot to update one of the assertions.
We can't rely on totalHits being accurate when the search is executed my multiple threads and early terminated.
2022-03-18 18:49:20 +01:00
Adrien Grand 1dcb64b492 LUCENE-10418: Move CHANGES to the correct section. 2022-03-17 16:44:01 +01:00
Adrien Grand 8fb6543280
LUCENE-10418: Optimize `Query#rewrite` in the non-scoring case. (#672) 2022-03-17 16:41:55 +01:00
Adrien Grand 86bd921fce
LUCENE-10469: Fix score mode propagation in ConstantScoreQuery. (#750) 2022-03-16 13:16:33 +01:00
Peter Gromov 0e3c315b76 LUCENE-10452, LUCENE-10451: mention hunspell changes in CHANGES.txt 2022-03-16 09:18:58 +01:00
Peter Gromov af97c5ef37
LUCENE-10452: Hunspell: call checkCanceled less frequently to reduce the overhead (#723) 2022-03-16 09:04:08 +01:00
Julie Tibshirani 6b7953b8ce Add 9.2.0 section to release notes 2022-03-15 11:26:20 -07:00
Peter Gromov 92a20c24e9
LUCENE-10451 Hunspell: don't perform potentially expensive spellchecking after timeout (#721)
move all expensive operations closer to the suggestion creation, encapsulate case and output conversion into a new Suggestion class
2022-03-15 18:43:56 +01:00
Tomoko Uchida b6c1024f55
LUCENE-10463: increment java version to 17 in smoke tester (#748) 2022-03-15 19:54:54 +09:00
Dawid Weiss 25c4310bd5
LUCENE-10461: fix windows launch script for luke so that it works with integration tests AND actual command line. Cmd escaping rules and start command line is absolutely insane. (#743) 2022-03-12 19:39:31 +09:00
Dawid Weiss 9e9c457f80
LUCENE-10459: Update smoke tester for 9.1 (#744)
Add demo dependencies to third party modules. Add an IT that checks whether
demo classes are loadable.

Co-authored-by: Tomoko Uchida <tomoko.uchida.1111@gmail.com>
Co-authored-by: Julie Tibshirani <julietibs@apache.org>
2022-03-11 10:22:17 -08:00
Dawid Weiss e999056c19 LUCENE-10311: avoid division by zero on small sets. 2022-03-09 11:41:01 +01:00
Mayya Sharipova e5717cddfd
LUCENE-10408 Test correction checksum (#734)
Use double instead of float to test vector values checksum
2022-03-09 08:02:40 +00:00
Spyros Kapnissis 8afec33e74
LUCENE-10171: OpenNLPOpsFactory should directly cache DictionaryLemmatizer objects (#380)
Instead of caching dictionary strings and building multiple redundant DictionaryLemmatizer objects.

Co-authored-by: Michael Gibney <michael@michaelgibney.net>
2022-03-08 12:47:16 -05:00
Daniel Doubrovkine (dB.) 7aec489945
Fix: typo + +minScore. (#735) 2022-03-08 08:21:22 -05:00
Yuting Gan 10b78714c1
Fixed a typo in the Javadoc of TaxonomyReader (#732)
Co-authored-by: Yuting Gan <ganyutingi@gmail.com>
2022-03-06 19:21:34 -05:00
Adrien Grand ae16917c1d
LUCENE-10311: Remove pop_XXX helpers from `BitUtil`. (#724)
As @rmuir noted, it would be as simple and create less cognitive overhead to
use `Long#bitCount` directly.
2022-03-05 18:38:57 +01:00
Adrien Grand 8086ef9f45 LUCENE-10455: CHANGES entry. 2022-03-05 18:32:41 +01:00
Adrien Grand 9d732380ae
LUCENE-10453: Speed up euclidean distances. (#725) 2022-03-05 18:31:56 +01:00
Chris Lu 2700c6b525
LUCENE-10455: IndexSortSortedNumericDocValuesRangeQuery should implement Weight#scorerSupplier(LeafReaderContext) (#729) 2022-03-05 18:27:29 +01:00
Alan Woodward e049e426dd
LUCENE-10431: Remove MultiTermQuery.setRewriteMethod() (#726) 2022-03-04 11:54:02 +00:00
Dawid Weiss 81ab1e598f
LUCENE-10447: always use utf8 for forked process encoding. Use the sa… (#717) 2022-03-03 20:53:20 +01:00
Alan Woodward 3f994dec53
LUCENE-10431: Deprecate MultiTermQuery.setRewriteMethod() (#722)
Allowing users to mutate MultiTermQuery can give rise to odd bugs, for example
in wrapper queries such as BooleanQuery which lazily calculate their hashcodes
and then cache the result. This commit deprecates the setRewriteMethod()
method on MultiTermQuery, in preparation for removing it entirely, and adds
constructor parameters to the various MTQ implementations as a preferred
way to set the rewrite method.
2022-03-03 11:08:39 +00:00
Adrien Grand bff4246476 LUCENE-10002: Fix test failure.
When IndexSearcher is created with a threadpool it becomes impossible to assert
on the number of evaluated hits overall.
2022-03-03 10:10:35 +01:00
Adrien Grand 44a2a82319
LUCENE-10428: Avoid infinite loop under error conditions. (#711)
Co-authored-by: dblock <dblock@dblock.org>
2022-03-03 09:42:12 +01:00
Adrien Grand ca73ed1c28
LUCENE-10311: Make FixedBitSet#approximateCardinality faster (and actually approximate). (#710)
This computes a pop count on a sample of the longs that back the bitset.

Quick benchmarks suggest that this runs 5x-10x faster than
`FixedBitSet#cardinality` depending on the length of the bitset.
2022-03-03 08:48:44 +01:00
Peter Gromov 9ed526b70e [hunspell] make SuggestionTimeoutException public
to make it easier for custom checkCanceled implementations to throw it depending on their ad-hoc conditions and get partial results
2022-03-02 21:24:24 +01:00
Adrien Grand 46f9a25216 LUCENE-10237: Move CHANGES entry to 9.1. 2022-03-02 09:39:54 +01:00
Lu Xugang e996f1d8e7
LUCENE-10450: IndexSortSortedNumericDocValuesRangeQuery could be rewrite to MatchAllDocsQuery (#720) 2022-03-02 09:28:40 +01:00
Lu Xugang e8e522a52b
LUCENE-10439: update CHANGES.txt (#714) 2022-03-02 09:23:44 +01:00
Anand 14726dec51
LUCENE-10237 : Add MergeOnCommitTieredMergePolicy to sandbox (#446) 2022-03-02 09:19:25 +01:00
Luca Cavanna 1b083ea039
LUCENE-10002: Replace test usages of TopScoreDocCollector with a corresponding collector manager (#716)
In the effort or replacing usages of IndexSearcher#search(Query, Collector) with IndexSearcher#search(Query, CollectorManager), this commit replaces many test usages of TopScoreDocCollector with its corresponding CollectorManager created by calling TopScoreDocCollector#createSharedManager.
2022-03-02 09:14:36 +01:00
Greg Miller 51797dc7f1
LUCENE-10440: Reduce visibility of TaxonomyFacets and FloatTaxonomyFacets (#712) 2022-03-01 06:02:40 -08:00
Lu Xugang 6224d0b157
LUCENE-10442: When indexQuery or/and dvQuery be a MatchAllDocsQuery then IndexOrDocValuesQuery should be rewrite to MatchAllDocsQuery (#715) 2022-02-28 18:46:32 +01:00
Robert Muir 466278e149
LUCENE-10421: use Constant instead of relying upon timestamp (#686) 2022-02-25 00:38:13 -05:00
Greg Miller 4af516a149 Remove TODO for LUCENE-9952 since that issue was fixed 2022-02-24 12:03:55 -08:00
Adrien Grand d47ff38d70
LUCENE-10382: Use `IndexReaderContext#id` to check reader identity. (#702)
`KnnVectorQuery` currently uses the index reader's hashcode to make sure that
the query it builds runs on the right reader. We had added
`IndexContextReader#id` a while back for a similar purpose with `TermStates`,
let's reuse it?
2022-02-24 13:38:02 +01:00
Adrien Grand 44d7d962ae
LUCENE-10408: Write doc IDs of KNN vectors as ints rather than vints. (#708)
Since doc IDs with a vector are loaded as an int[] in memory, this changes the
on-disk format of vectors to align with the in-memory representation by using
ints instead of vints to represent doc IDs. This might make vectors a bit
larger on disk, but also a bit faster to open.

I made the same change to how we encode nodes on levels for the same reason.
2022-02-24 13:36:10 +01:00
Lu Xugang 550d1305db
LUCENE-10439: Support multi-valued and multiple dimensions for count query in PointRangeQuery (#705) 2022-02-24 10:13:03 +01:00
gf2121 b0ca227862
LUCENE-10417: Revert "LUCENE-10315" (#706) 2022-02-24 16:41:17 +08:00
Julie Tibshirani d9c2e46824 LUCENE-10382: Fix testSearchWithVisitedLimit failures 2022-02-23 19:56:38 -08:00
Lu Xugang 7ec89603e3
LUCENE-10435: add CHANGES.txt entry (#704) 2022-02-23 15:41:02 -08:00