-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[GRPC][Term-level queries] Implement GRPC Ids, Range, and Terms Set queries #19448
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
Merged
mch2
merged 17 commits into
opensearch-project:main
from
karenyrx:0.18.0_bool_ids_range_termsset
Sep 30, 2025
+1,820
−44
Merged
Changes from 3 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
28b984c
upgrade to protobufs 0.18.0
karenyrx fef4f49
add tests
karenyrx d89048d
[GRPC][Term-level queries] Implement Ids, Range, Termsset
karenyrx d0cbe21
Merge remote-tracking branch 'ossupstream/main' into 0.18.0_bool_ids_…
karenyrx 84e5135
package private
karenyrx 08037b3
remove unused variables
karenyrx 67aa628
Merge branch 'main' into 0.18.0_bool_ids_range_termsset
karenyrx cd654aa
spotless
karenyrx 70eb7b3
Merge branch 'main' into 0.18.0_bool_ids_range_termsset
karenyrx 24c230d
remove duplicate from merge conflict
karenyrx aef0221
Merge branch 'main' into 0.18.0_bool_ids_range_termsset
karenyrx ecd6734
Merge branch 'main' into 0.18.0_bool_ids_range_termsset
karenyrx 1fb2f8d
spotless and fix merge conflict
913402e
Merge branch 'main' into 0.18.0_bool_ids_range_termsset
karenyrx 98cafd2
spotless
karenyrx fc172c0
Merge branch 'main' into 0.18.0_bool_ids_range_termsset
karenyrx 47d4726
fix merge conflict and spotless
karenyrx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| e8dc93c60df892184d7c2010e1bd4f15a777c292 |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| e8dc93c60df892184d7c2010e1bd4f15a777c292 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...g/opensearch/transport/grpc/proto/request/search/query/IdsQueryBuilderProtoConverter.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /* | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * The OpenSearch Contributors require contributions made to | ||
| * this file be licensed under the Apache-2.0 license or a | ||
| * compatible open source license. | ||
| */ | ||
| package org.opensearch.transport.grpc.proto.request.search.query; | ||
|
|
||
| import org.opensearch.index.query.QueryBuilder; | ||
| import org.opensearch.protobufs.QueryContainer; | ||
| import org.opensearch.transport.grpc.spi.QueryBuilderProtoConverter; | ||
|
|
||
| /** | ||
| * Converter for Ids queries. | ||
| * This class implements the QueryBuilderProtoConverter interface to provide Ids query support | ||
| * for the gRPC transport module. | ||
| */ | ||
| public class IdsQueryBuilderProtoConverter implements QueryBuilderProtoConverter { | ||
|
|
||
| /** | ||
| * Constructs a new IdsQueryBuilderProtoConverter. | ||
| */ | ||
| public IdsQueryBuilderProtoConverter() { | ||
| // Default constructor | ||
| } | ||
|
|
||
| @Override | ||
| public QueryContainer.QueryContainerCase getHandledQueryCase() { | ||
| return QueryContainer.QueryContainerCase.IDS; | ||
| } | ||
|
|
||
| @Override | ||
| public QueryBuilder fromProto(QueryContainer queryContainer) { | ||
| if (queryContainer == null || !queryContainer.hasIds()) { | ||
| throw new IllegalArgumentException("QueryContainer does not contain an Ids query"); | ||
| } | ||
|
|
||
| return IdsQueryBuilderProtoUtils.fromProto(queryContainer.getIds()); | ||
| } | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.