Skip to content

Commit 67fe5c4

Browse files
harshavamsiparv0201
authored andcommitted
Allow doc value search on unindexed boolean and date fields (opensearch-project#11650)
* Making fields searchable Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Adding tests for boolean fields Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Added tests for date fields Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Updating termsQuery logic Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Spotless Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Updating terms test Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Spotless Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Ensure that the points are intersecting for doc_values Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Spotless Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Adding missing javadocs Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Adding more tests for indexedValueForSearch Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Adding MatchAllDocsQuery to asserts Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix changelog Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Simplify loop criteria + remove IndexOrDocValuesQuery Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Add some comments Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix indendation Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fixing boolean field tests Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Revert to correct logic for termsQuery Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Update terms logic to be more succinct Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fix terms test Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Adding tests for boolean range query + fix range query to use term query inside Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Checking if upper and lower terms are valid Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Checking if upper and lower terms are valid Signed-off-by: Harsha Vamsi Kalluri <[email protected]> * Fixing changelog Signed-off-by: Harsha Vamsi Kalluri <[email protected]> --------- Signed-off-by: Harsha Vamsi Kalluri <[email protected]>
1 parent da758fe commit 67fe5c4

File tree

8 files changed

+573
-28
lines changed

8 files changed

+573
-28
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
7070
- Refactoring globMatch using simpleMatchWithNormalizedStrings from Regex ([#13104](https://github.com/opensearch-project/OpenSearch/pull/13104))
7171
- [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))
7272
- 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))
73+
- 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))
7374
- [Revert] Prevent unnecessary fetch sub phase processor initialization during fetch phase execution ([#12503](https://github.com/opensearch-project/OpenSearch/pull/12503))
7475
- Refactor implementations of query phase searcher, allow QueryCollectorContext to have zero collectors ([#13481](https://github.com/opensearch-project/OpenSearch/pull/13481))
7576

0 commit comments

Comments
 (0)