-
Notifications
You must be signed in to change notification settings - Fork 336
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
Implement the query parsing in the default doc mapper & disable range queries #140
Comments
Renamed the issue as we first need to implement the query parsing in the default doc mapper. |
@evanxg852000 I see that you assigned the ticket to yourself. Here is a bit of guidance. One "clean" way to do this is as follows. Depend on the tantivy-query-grammar crate. Parse the user query into an UserInputQuery object. If there are no range, just go on with parsing the query the way we did before. (it feels stupid because we end up parsing the query twice but that's fine). If there is a range, return an Error explaining ranges are not supported for the moment. |
@evanxg852000 I think you should also factorize our trivial query building logic. A good way to do it might be to introduce a
That implements does the field name resolution, the no range query check, and the query parsing boilerplate. Then have the different mapper call this function. (an alternative solution that might seem logic would be to have a blanket implementation in |
Thanks @fulmicoton for the explanation, I was already wondering how would I plug my code to check for |
The benefit is minor... By adding the build_query function, you can implement the logic in every call traits. On the other hand, it forces us to add a default_fields method in the trait, even though this is not necessarily something that always makes sense. |
Range queries are not possible today in quickwit. We need to disable them.
The text was updated successfully, but these errors were encountered: