-
Notifications
You must be signed in to change notification settings - Fork 58
Description
Since we do not have the ability to do multi-geo points in the same document (meilisearch/product#508), I've been thinking about possibly indexing the same object multiple times using a different _geo for each one and then using a distinctAttribute to to only show a single document (in this case a user with multiple addresses) in the result set.
My question is, is there a recommended approach to doing this with meilisearch-rails or would the better option in this case to completely ignore this gem and just use the native Ruby gem and write our own code around the indexing and querying? It seems a shame to ignore all the additional features that are provided by the rails gem (the search method returning AR objects, pagy integration, etc), but I can't see a natural way to have a single ActiveRecord object index itself in multiple ways.
Any advice would be wonderful.