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

fix FuzzyQuery in keyword field will use IndexOrDocValuesQuery when both of index and doc_value are true #14378

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

kkewwei
Copy link
Contributor

@kkewwei kkewwei commented Jun 15, 2024

Description

Fix FuzzyQuery in keyword field will use IndexOrDocValuesQuery when both of index and doc_value are true.

Related Issues

Resolves #14377

Check List

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

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.

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 15, 2024

@harshavamsi @msfroh, please help review the code when you are free, I am very grateful for this.

Copy link
Contributor

✅ Gradle check result for d843cdd: SUCCESS

Copy link

codecov bot commented Jun 15, 2024

Codecov Report

Attention: Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.

Project coverage is 71.66%. Comparing base (b15cb0c) to head (5e7ab2a).
Report is 475 commits behind head on main.

Files Patch % Lines
...a/org/opensearch/index/mapper/StringFieldType.java 66.66% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14378      +/-   ##
============================================
+ Coverage     71.42%   71.66%   +0.24%     
- Complexity    59978    62152    +2174     
============================================
  Files          4985     5125     +140     
  Lines        282275   292352   +10077     
  Branches      40946    42243    +1297     
============================================
+ Hits         201603   209526    +7923     
- Misses        63999    65538    +1539     
- Partials      16673    17288     +615     

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

Copy link
Contributor

✅ Gradle check result for c873c43: SUCCESS

@kkewwei kkewwei changed the title fix fix FuzzyQuery in keyword will use IndexOrDocValuesQuery when both of index and doc_value are true fix FuzzyQuery in keyword will use IndexOrDocValuesQuery when both of index and doc_value are true Jun 16, 2024
@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 18, 2024

null

❌ Gradle check result for 751fc36: null

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?

SearchRestCancellationIT.testAutomaticCancellationMultiSearchDuringQueryPhase #13674
RecoveryFromGatewayIT.testMultipleReplicaShardAssignmentWithDelayedAllocationAndDifferentNodeStartTimeInBatchMode #14346
RemoteSplitIndexIT.classMethod #13828

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 18, 2024

@dblock, please have a another look when you are free.

dblock
dblock previously requested changes Jun 18, 2024
Copy link
Member

@dblock dblock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with this code, maybe @andrross or someone else is?

Copy link
Contributor

✅ Gradle check result for 2326e62: SUCCESS

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 20, 2024

@andrross please help merge, thank you.

Copy link
Contributor

✅ Gradle check result for ba4b35f: SUCCESS

Copy link
Contributor

❌ Gradle check result for 5e7ab2a: 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?

@kkewwei
Copy link
Contributor Author

kkewwei commented Jun 23, 2024

❌ Gradle check result for 5e7ab2a: 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?

SearchWithRandomExceptionsIT.testRandomExceptions #14144

Copy link
Contributor

❌ Gradle check result for 5e7ab2a: 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?

Copy link
Contributor

✅ Gradle check result for 5e7ab2a: SUCCESS

@andrross andrross dismissed dblock’s stale review June 24, 2024 21:42

Looks good to me

@andrross andrross merged commit afad5eb into opensearch-project:main Jun 24, 2024
32 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 24, 2024
…true (#14378)

Signed-off-by: kkewwei <[email protected]>
(cherry picked from commit afad5eb)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
jed326 pushed a commit that referenced this pull request Jun 25, 2024
…true (#14378) (#14529)

(cherry picked from commit afad5eb)

Signed-off-by: kkewwei <[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>
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Jul 12, 2024
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…true (opensearch-project#14378) (opensearch-project#14529)

(cherry picked from commit afad5eb)

Signed-off-by: kkewwei <[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>
Signed-off-by: kkewwei <[email protected]>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
@kkewwei kkewwei deleted the issue_14377 branch September 19, 2024 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working Search Search query, autocomplete ...etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] FuzzyQuery in keyword type does not use the IndexOrDocValuesQuery when index is and doc_value is true
4 participants