Skip to content

Conversation

@nomoa
Copy link
Contributor

@nomoa nomoa commented Oct 27, 2025

Description

This filter may be useful with keyword fields if preferring to truncate the data rather than ignoring it (ignore above).
Move and re-purpose the TruncateTokenFilterTests from the server module to analysis-common (the lucene truncate filter has moved to lucene a long time ago).

Related Issues

Resolves #19778

Check List

  • Functionality includes testing.
  • [ ] API changes companion pull request created, if applicable.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@nomoa nomoa requested a review from a team as a code owner October 27, 2025 11:04
@github-actions github-actions bot added enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing labels Oct 27, 2025
@github-actions
Copy link
Contributor

❕ Gradle check result for ac51c6c: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.17%. Comparing base (753c135) to head (84d46c5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #19779      +/-   ##
============================================
+ Coverage     73.10%   73.17%   +0.06%     
- Complexity    70959    70991      +32     
============================================
  Files          5737     5737              
  Lines        324766   324766              
  Branches      46981    46981              
============================================
+ Hits         237425   237649     +224     
+ Misses        68226    67964     -262     
- Partials      19115    19153      +38     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This filter may be useful with keyword fields if preferring to truncate
the data rather than ignoring it (ignore above).
Move and re-purpose the TruncateTokenFilterTests from the server module
to analysis-common (the lucene truncate filter has moved to lucene a
long time ago).

Signed-off-by: David Causse <[email protected]>
@nomoa nomoa force-pushed the make-truncate-filter-a-normalizing-token-filter branch from ac51c6c to 84d46c5 Compare October 27, 2025 12:51
@github-actions
Copy link
Contributor

✅ Gradle check result for 84d46c5: SUCCESS

nomoa added a commit to nomoa/opensearch-documentation-website that referenced this pull request Oct 27, 2025
nomoa added a commit to nomoa/opensearch-documentation-website that referenced this pull request Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] The truncate token filter should be usable in a normalizer

1 participant