Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Allow doc value search on unindexed boolean and date fields #13514

Merged
merged 1 commit into from
May 2, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport dc77c46 from #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]>
(cherry picked from commit dc77c46)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented May 2, 2024

❌ Gradle check result for b23425b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@VachaShah
Copy link
Collaborator

❌ Gradle check result for b23425b: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

#13504

Copy link
Contributor

github-actions bot commented May 2, 2024

❕ Gradle check result for b23425b: UNSTABLE

  • TEST FAILURES:
      1 org.opensearch.action.admin.cluster.node.tasks.ResourceAwareTasksTests.testTaskResourceTrackingDuringTaskCancellation

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

@VachaShah
Copy link
Collaborator

@harshavamsi You can add the backport for #13517 in here as well since its a followup of this and needs a manual backport.

@VachaShah VachaShah merged commit bc6f683 into 2.x May 2, 2024
47 checks passed
@github-actions github-actions bot deleted the backport/backport-11650-to-2.x branch May 2, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant