Filtering?
aradalvand opened this issue · 3 comments
aradalvand commented
Hey there. Doesn't lnx have a filtering feature? I couldn't find any relevant info in the docs/README, and there also doesn't seem to be an issue about this. By filtering I mean being able to narrow down search results based on the value of specific properties (e.g. averageRating > 4
, etc.). Meilisearch, Typesense, and so on all do provide some filtering capabilities.
ChillFish8 commented
Hello 👋 Sorry for the long response, been pretty busy.
The filtering is combined into the query system, you can use the normal
query parser to build a filter query letting you do:
my_field:[1234 TO 75235]
, etc... For range queries, etc... See https://docs.rs/tantivy/0.19.2/tantivy/query/struct.QueryParser.html for the full query syntax