Skip to content

Meilisearch _geo consitency with with Firestore Geopoint #143

@baek-b

Description

@baek-b

For _geoRadius to work, the current documentation and workings of Meilisearch requires Geopoint fields in firestore to be renamed as _geo. However, when it comes to the "lat" & "lng" field name formats. Firestore does not allow renaming of these fields. These fields are named "_latitude" & "_longitude" respectively by Firestore. I was unable to do a _geoRadius search on Meiliesearch.

Steps to reproduce the issue:

  1. Install Meilisearch on GCP - [long story short, it works]
  2. Create new index and add "_geo" to "filterableAttributes" settings - [Works]
  3. Install Meilisearch Firestore extension. [Search queries return correct results, including "_geo" fields but with "_latitude" & "_longitude". - [Works]
  4. Add test documents with _geo in Firestore. - [Works]
  5. Run empty q search without filter - [Works]
  6. Run empty q search with {"filter": "_geoRadius( , , )"} - [No results returned]

No results returned even if same value as the document are passed. I don't know if it's because Meilisearch is looking for "lat" & "lng" and can't find anything or something else. Either way, I could find any issues or documentation on this.

I also came across this issue. I'm not sure if anything has been rewritten but the documentation is not update in that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds investigationNeeds to take time to understand the issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions