atomic-server
atomic-server copied to clipboard
Fuzzy search in custom properties
As of now, fuzzy search works well for name and description, but not for other fields. I forgot why this is (could be a technical limitation of tantivy), but it would be nice if all text-fields can be fuzzy-searchable.
This is because fuzzy search only works on string fields. We index name and description as string fields and the rest of the propvals as json.
Maybe we can add configurable fields to be indexed as string instead of json? So a user would add a property that they want fuzzy search on to a config file and then AtomicServer will add that to the Tantivy schema and add fuzzy queries for it in the search endpoint.
Seems like JSON fields are supported in FuzzyTermQuery since 0.22 https://github.com/quickwit-oss/tantivy/pull/2173 !