Commit Graph

37203 Commits

Author SHA1 Message Date
Mikhail Khludnev 90e4c44b99
Log MockRandomMergePolicy reverse in verbose. (#13117) 2024-02-27 12:09:35 +03:00
Andrey Bozhko 6764a01805
Add getter for SynonymQuery#field (#13077)
---------

Co-authored-by: Andrey Bozhko <abozhko@apple.com>
2024-02-27 11:43:45 +03:00
Chris Hostetter bf6f38665e Fix ByteKnnVectorFieldSource & FloatKnnVectorFieldSource to work correctly when a segment does not contain any docs with vectors (#13105) 2024-02-26 12:12:40 -07:00
Shubham Chaudhary 6eba1fb537
Fix test TestKnnByteVectorQuery.testToString (#13134)
Co-authored-by: Shubham Chaudhary <cshbha@amazon.com>
2024-02-26 02:31:49 -05:00
Zhang Chao ca06693a16
Reduce ArrayUtil#grow in decompress (#12996) 2024-02-25 12:09:48 -08:00
Uwe Schindler 0ccb119495
Merge branch 'main' into java_21 2024-02-25 16:39:41 +01:00
Uwe Schindler 47021ae98f
Remove hardcoded "--release" from renderJavadoc task (#13132) 2024-02-25 16:32:30 +01:00
Robert Muir 738d661b94
fix smoketester 2024-02-24 15:11:24 -05:00
Robert Muir 3d7c88e695
fix release wizard 2024-02-24 15:08:11 -05:00
ChrisHegarty 54b6248a8d Merge branch 'main' into java_21 2024-02-23 17:07:54 +00:00
ChrisHegarty e63df4d879 update changes.txt 2024-02-23 17:07:31 +00:00
Dmitry Cherniachenko 8f759d5bf6
Avoid allocating redundant Strings (#13085) 2024-02-23 10:41:53 +00:00
Adrien Grand 61f322905a
Change BP reordering logic to help support document blocks later on. (#13123)
The current logic for reordering splits a slice of doc IDs into a left side and
a right side, and for each document it computes the expected gain of moving to
the other side. Then it swaps documents from both sides as long as the sum of
the gain of moving the left doc to the right and the right doc to the left is
positive.

This works well, but I would like to extend BP reordering to also work with
blocks, and the swapping logic is challenging to modify as two parent documents
may have different numbers of children.

One of the follow-up papers on BP suggested to use a different logic, where one
would compute a bias for all documents that is negative when a document is
attracted to the left and positive otherwise. Then we only have to partition doc
IDs around the mid point, e.g. with quickselect.

A benefit of this change is that it will make it easier to generalize BP
reordering to indexes that have blocks, e.g. by using a stable sort on biases.
2024-02-23 09:09:19 +01:00
Chris Hegarty 17cbedccfc
FieldInfosFormat translation should be independent of VectorSimilartyFunction enum (#13119)
This commit updates the FieldInfosFormat translation of vector similarity functions to be independent of the VectorSimilartyFunction enum.

The VectorSimilartyFunction enum lives outside of the codec format, and the format should not inadvertently depend upon the declaration order or values in VectorSimilartyFunction. The format should be in charge of the translation of similarity function to format ordinal (and visa versa). In reality, and for now, the translation remains the same as the declaration order, but this may not be the case in the future.
2024-02-22 17:22:20 +00:00
Zhang Chao 6732d2b2fa
fix (#13122) 2024-02-22 14:11:07 +08:00
Adrien Grand 568c8eba97 Use NIO2 APIs. 2024-02-20 22:37:18 +01:00
Adrien Grand 75b26b1bee Bump min version with parent field. 2024-02-20 22:29:11 +01:00
Adrien Grand dce66f1e3e Add back-compat indices for 9.10.0 2024-02-20 22:16:56 +01:00
Adrien Grand 13d561af1d Fix bw index generation logic. 2024-02-20 22:14:06 +01:00
Adrien Grand 47b02dba1e DOAP changes for release 9.10.0 2024-02-20 18:17:14 +01:00
Prabhat ff59150934
Added queued flush check optimization to changes.txt (#13118)
Co-authored-by: Prabhat Sharma <ptsharma@amazon.com>
2024-02-20 17:21:05 +01:00
Prabhat 8a73cdef8c
Short circuit queued flush check when flush on update is disabled (#13115)
Co-authored-by: Prabhat Sharma <ptsharma@amazon.com>
2024-02-19 09:21:38 -05:00
ChrisHegarty c7b05f56bd post merge fix 2024-02-19 11:46:17 +00:00
ChrisHegarty 07f4b5b19f Merge branch 'main' into java_21 2024-02-19 11:43:46 +00:00
Zhang Chao 55df3e02f3
Fix too many open files Exception for some tests (#13035)
* init

* fix review

* fix review

* iter
2024-02-19 05:35:24 -05:00
Dmitry Cherniachenko 9a88d8ad25
Remove redundant field initializers (#13060)
Make protected fields in final classes private.
2024-02-19 09:52:43 +00:00
Benjamin Trent 39f681812b
Adding a getter to FeatureField to allow value access (#13111)
Getting the access of a FeatureField#value is useful for deduplicating. If you have a sparse vector model and you want to handle multiple inputs from them, you want flexibility in how you de-duplicate the feature dimensions.
2024-02-17 09:03:08 -05:00
Benjamin Trent af0d0edf5e
Fix test failure in #13057 (#13102)
The original tests assume particular document orders & scores. To make the test more resilient to random flushes & merges, I adjusted the assertion conditions. Particularly, we verify matching ids -> score instead of relying on docIds.

closes: https://github.com/apache/lucene/issues/13057
2024-02-16 09:33:34 -05:00
Dawid Weiss cc25fd9deb React to mod-analysis-common workflow path (regression after workflow renamed). #13110 2024-02-16 12:40:49 +01:00
Dawid Weiss aa7d035ac2
github workflow cleanup and minor improvements (#13110) 2024-02-16 12:38:21 +01:00
Dmitry Cherniachenko 9206bdeb06
Move `brToString(BytesRef)` to `ToStringUtils` (#13068) 2024-02-15 18:16:44 +01:00
Zhang Chao b16d7117a3
Fix NPE for TestRandomChains.testRandomChainsWithLargeStrings (#13104) 2024-02-15 16:20:53 +01:00
Dmitry Cherniachenko f24b1de351
Cleanup TokenizedPhraseQueryNode code (#13041) 2024-02-15 10:04:58 +00:00
Simon Willnauer c9e4434cc3 Fix addBackcompatIndexes.py to properly generate missing versions (#13095)
In #13046 several changes broke the addBackcompatIndexes.py script
to properly add and test the unreleased version. This updates the
script to again properly add the new version.

Closes #13094

Co-authored-by: Dawid Weiss <dawid.weiss@carrotsearch.com>
2024-02-14 21:58:30 +01:00
Dawid Weiss 444d816622 Moved changes entry to 9.11 #13092 2024-02-14 11:32:55 +01:00
Dmitry Cherniachenko 3768b2e1e0
Make `static final Map` constants immutable (#13092) 2024-02-13 19:02:55 +01:00
Dawid Weiss a270acae01
This reverts the addition of spotless:on/off regions and shows just one possible alternative that is formatter fool-proof. (#13098) 2024-02-13 19:00:11 +01:00
Uwe Schindler 2639aea5dd
Change the links to Lucene's homepage in the DOAP file to https:// (#13097) 2024-02-13 14:19:33 +01:00
Simon Willnauer c42380cbd0 Enable parent field in sorted bwc tests (#13067)
This enables the optional parent field in BWC tests from 9.10 on.
This will need to be forward ported to main branch where the
parent field is required to these tests since they add document blocks
during tests.
2024-02-13 12:00:29 +01:00
Adrien Grand 6f026d7c36 Fix logic to always exclude latest minor from previous major. 2024-02-13 10:59:16 +01:00
Adrien Grand d7e0a7f0e4
Only track released versions in `oldVersions`. (#13096) 2024-02-13 10:48:30 +01:00
Zhang Chao f6e065dc31
Fix test failure for TestDocumentsWriterDeleteQueue.testUpdateDeleteSlices (#13089) 2024-02-13 10:10:44 +08:00
Adrien Grand 027240f522 Tidy after version bump. 2024-02-12 17:01:47 +01:00
Adrien Grand 314c553bdc Add next major version 9.11.0 2024-02-12 14:36:17 +01:00
Christine Poerschke 8bf10130e9 lucene/MIGRATE.md update: remove empty 9.9 to 9.10 section 2024-02-12 10:17:41 +00:00
Dawid Weiss 7d99e6aafb Move changes and migration entries to Lucene 10.x since it seems there'll be no way to apply this patch in 9x? #12674 2024-02-11 11:14:58 +01:00
Uwe Schindler 7e921e4ed9 fix typo in CHANGES.txt 2024-02-09 23:15:05 +01:00
Uwe Schindler 178f5a7a7e
Enable MemorySegment in MMapDirectory for Java 22+ and Vectorization (incubation) for exact Java 22 (#12706) 2024-02-09 23:02:42 +01:00
Robert Muir d7a16dc10a
Merge branch 'main' into java_21 2024-02-09 15:22:45 -05:00
Robert Muir ec04490bd2
java 17 -> java 21 2024-02-09 15:18:30 -05:00