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

list terms #2740

Merged
merged 11 commits into from
Feb 8, 2023
Merged

list terms #2740

merged 11 commits into from
Feb 8, 2023

Conversation

trinity-1686a
Copy link
Contributor

fix #2567

Description

add a new list_term search, which enumerate terms over a range in the sstable and does not fetch actual documents

How was this PR tested?

basic unit tests where added

TODO

error handling is perfectible/missing, some code (term manipulation) should probably be part of tantivy rather than quickwit

@trinity-1686a trinity-1686a changed the title Trinity list terms list terms Jan 30, 2023
quickwit/quickwit-proto/protos/quickwit/search_api.proto Outdated Show resolved Hide resolved
quickwit/quickwit-proto/protos/quickwit/search_api.proto Outdated Show resolved Hide resolved
quickwit/quickwit-proto/protos/quickwit/search_api.proto Outdated Show resolved Hide resolved
quickwit/quickwit-search/src/collector.rs Outdated Show resolved Hide resolved
@trinity-1686a trinity-1686a marked this pull request as ready for review February 6, 2023 09:42

// Root list terms API.
// This RPC identifies the set of splits on which the query should run on,
// and dispatches the several calls to `LeafListTerm`.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// and dispatches the several calls to `LeafListTerm`.
// and dispatches the several calls to `LeafListTerms `.

mut client: SearchServiceClient,
) -> crate::Result<LeafListTermsResponse> {
let response_res = client.leaf_list_terms(request.clone()).await;
// TODO: implement retry
Copy link
Member

Choose a reason for hiding this comment

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

Can you remove this commented code and open an issue?

@trinity-1686a trinity-1686a enabled auto-merge (squash) February 8, 2023 10:41
@trinity-1686a trinity-1686a merged commit 01a6775 into main Feb 8, 2023
@trinity-1686a trinity-1686a deleted the trinity--list-terms branch February 8, 2023 10:58
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.

List of terms for field
2 participants