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
Search Results cannot be sorted by a date field #26
Comments
Actual this looks like it might be documentation issue (in tanvity?). According to https://docs.rs/tantivy/0.16.0/tantivy/fastfield/trait.FastValue.html dates cannot be fast fields. |
Date fields are fast fields iirc because they're stored as a i64 timestamp internally, or at least according to the docs so its interesting that this behavour doesnt work. |
I have an idea of what Could be causing this but I'll rewuire some test later on today, if im right the type magic might be failing us here :( |
Okay, this should be fixed now, this was a consequence of a misleading error due to tantivy not having chrono's serde feature enabled. |
Attempting to perform a search where the
order_by
field is a date leads to an error:It looks this is because the
FieldValue
is implied to be i64:lnx/engine/src/index/reader.rs
Lines 549 to 552 in 8d38d38
The text was updated successfully, but these errors were encountered: