Skip to content

Conversation

thecoop
Copy link
Contributor

@thecoop thecoop commented Sep 29, 2025

Use assertThat and friends rather than opaque boolean conditions in some tests in org.apache.lucene.search

thecoop and others added 17 commits September 24, 2025 09:32
Slowly moving the legacy formats to the backwards codecs.

I have most of the logic moved, but there are additional things to figure out.

I don't think we can easily move the Lucene99ScalarQuantizedVectorScorer just yet, but we should be able to prevent users from using the old quantized formats.
…s for non-accountable query size (apache#15124)

* Use RamUsageEstimator to calculate query size instead of the default 1024 bytes for non accountable queries

* Use try-with-resources for directory and indexWriter

* Adding changes to cache query size and queries per clause to reduce impact of repeated visit() calls during RamUsageEstimator.sizeOf()

* Adding changelog entry

* Making queries per clause list immutable

* Adding unit test to verify query size is cached correctly

* Renmaing QueryMetadata to Record

* Changing query metadata to record type and removing boolean query changes
Fix some issues found by `actionlint`, `shellcheck`, and `zizmor -p`
More issues remain, this is just incremental progress.
Co-authored-by: Kaival Parikh <kaivalp2000@gmail.com>
…e array filter applied and never cache dictionaries from custom locations (apache#15237)

* Fix SmartChinese to only serialize data from classpath with a native array filter applied and never cache dictionaries from custom locations

* fix exception handling

* add CHANGES.txt

* fix exception handling

* fix typo in CHANGES.txt

* Restore the code to regenerate the serialized file

* Disallow any serialization in test-framework as early as possible (we can't do that via sysprops due to Gradle)

* Install a serialization filter that only allows Gradle's test runner config deserialization

* fix errorprone

* use same logic like for security manager to install the filter

* add new filter to CHANGES.txt

* Improve performance by only installing a filter if we're not called from Gradle

* simplify

* Add a test for the deserialization filter

* fix typo

* improve test
@thecoop thecoop added the skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check. label Sep 29, 2025
@thecoop thecoop force-pushed the search-test-asserts branch from 263d809 to 4948003 Compare September 29, 2025 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:core/search skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants