-
Notifications
You must be signed in to change notification settings - Fork 421
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 of terms for field #2567
Comments
I took the liberty to change the name of the ticket. This ticket is related to #2266. I think we want this to work for any field, and in a separate ticket do some extra work specific to the service field to have it into the hotcache. This might mean some work in the doc mapper. Anyway in this ticket, we will want to have some proper warmup logic to load the one or two blocks term dictionary blocks necessary to address this queyr. That warmup routine can be reused in #2266. |
We might need to land quickwit-oss/tantivy#1734 before this. |
More information: For instance, if the prefix being search is I leave it to you to sort out how to deal with Then we already have code to identify file slice that need to be warmed up to go through a range: We can be a tiny bit more tight fit if needed by adapting it to only cover enough blocks to make sure we cover |
Given a field
f
, a prefixp
, and a maximum number of returned termsn
, returns at mostn
unique terms ordered lexicographically starting with the prefixp
for the fieldf
. Returns all the terms inf
ifp
is the empty string andn
isNone
.Use case: for the Jaeger integration, we want to efficiently retrieve the list of
services
for which traces have been ingested in the last 24h. Since the term dictionary will be small for this field, we will likely want to store it in the hotcache.The text was updated successfully, but these errors were encountered: