Skip to content

Commit

Permalink
Allow doc value search on unindexed boolean and date fields (#11650) (#…
Browse files Browse the repository at this point in the history
…13514)

* Making fields searchable



* Adding tests for boolean fields



* Added tests for date fields



* Updating termsQuery logic



* Spotless



* Updating terms test



* Spotless



* Ensure that the points are intersecting for doc_values



* Spotless



* Adding missing javadocs



* Adding more tests for indexedValueForSearch



* Adding MatchAllDocsQuery to asserts



* Fix changelog



* Simplify loop criteria + remove IndexOrDocValuesQuery



* Add some comments



* Fix indendation



* Fixing boolean field tests



* Revert to correct logic for termsQuery



* Update terms logic to be more succinct



* Fix terms test



* Adding tests for boolean range query + fix range query to use term query inside



* Checking if upper and lower terms are valid



* Checking if upper and lower terms are valid



* Fixing changelog



---------


(cherry picked from commit dc77c46)

Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 2d69e44 commit bc6f683
Show file tree
Hide file tree
Showing 8 changed files with 573 additions and 28 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- Refactoring globMatch using simpleMatchWithNormalizedStrings from Regex ([#13104](https://github.com/opensearch-project/OpenSearch/pull/13104))
- [BWC and API enforcement] Reconsider the breaking changes check policy to detect breaking changes against released versions ([#13292](https://github.com/opensearch-project/OpenSearch/pull/13292))
- Switch to macos-13 runner for precommit and assemble github actions due to macos-latest is now arm64 ([#13412](https://github.com/opensearch-project/OpenSearch/pull/13412))
- Add ability for Boolean and date field queries to run when only doc_values are enabled ([#11650](https://github.com/opensearch-project/OpenSearch/pull/11650))
- [Revert] Prevent unnecessary fetch sub phase processor initialization during fetch phase execution ([#12503](https://github.com/opensearch-project/OpenSearch/pull/12503))
- Refactor implementations of query phase searcher, allow QueryCollectorContext to have zero collectors ([#13481](https://github.com/opensearch-project/OpenSearch/pull/13481))

Expand Down
Loading

0 comments on commit bc6f683

Please sign in to comment.