-
-
Notifications
You must be signed in to change notification settings - Fork 620
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
Range queries on JSON fields #1709
Comments
Isn't the syntax for range queries supported by the built-in
(assuming that 0 is the smallest possible ID). |
The parser doesn't handle this currently, but this should work Related quickwit issue: quickwit-oss/quickwit#2431 |
@PSeitz Attempting the |
Indeed, it's disabled. |
If people want to contribute? |
Hi @fulmicoton I would like to contribute, if you can give any entry point to start working on this, thanks. |
https://github.com/quickwit-oss/tantivy/tree/main/src/query/range_query The code is sometimes bound to a fixed field in the schema. These would need to be replaced with something that can handle JSON, e.g. "myjson.fielda" A range query can run on the columnar storage and on the inverted index. I would implement it first for the inverted index, as it should be simpler. let me know if your are still interested |
I've implemented similar |
Here's my custom implementation of a range query for JSON fields for anyone interested: It's basically the same code as that of Tantivy's range query. I just changed the type of |
Is your feature request related to a problem? Please describe.
I cannot perform range queries on JSON fields. For example, the
examples/json_field.rs
has a search like so:But I cannot rewrite the query like this:
the count comes back 0.
Describe the solution you'd like
We should be able to search nested JSON documents with the usual
<
,>
, etc.The text was updated successfully, but these errors were encountered: