atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Fuzzy search in custom properties

Open joepio opened this issue 1 year ago • 2 comments

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.

joepio avatar Aug 14 '24 09:08 joepio

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.

Polleps avatar Aug 14 '24 14:08 Polleps

Seems like JSON fields are supported in FuzzyTermQuery since 0.22 https://github.com/quickwit-oss/tantivy/pull/2173 !

joepio avatar Aug 22 '24 14:08 joepio