Hi! Why is filter_by matching non-exact values? Q...
# community-help
j
Hi! Why is filter_by matching non-exact values? Query (Notice “telefon”, not “telefone”):
/documents/search?q=*&filter_by=slug_de-DE:=telefon
Result:
Copy code
"hits": [
    {
        "document": {
            "id": "Telefoner",
            "post_title_de-DE": "Telefone",
            "slug_de-DE": "telefone"  // <---
        },
        "highlight": {},
        "highlights": []
    }
]
The field schema:
Copy code
{
  "name": "slug_de-De",
  "type": "string",
  "facet": false,
  "index": true,
  "optional": false,
  "sort": false,
  "stem": true,
  "store": true,
  "locale": "de",
}
My understanding is that the “=” sign in the query would force an exact match.
a
Hey Jonatan, You are right, it should. Are you self-hosted? Could you make sure your are in the latest version?
j
Correct, we are currently on typesense/typesense:30.0.rc27
a
Could you kindly create a minimal reproducible example using the gist as guide? Self-hosted instances trickier to debug. https://gist.github.com/auth/github?return_to=https%3A%2F%2Fgist.github.com%2Fjasonbosco%2F7c3432713216c378472f13e72246f46b