Hi, I have cities containing '-' characters like t...
# community-help
g
Hi, I have cities containing '-' characters like this one: 'Plan-les-ouates'. How can I configure the search so I can found them when querying without the '-' like this: 'plan les ouates' ? Thanks
k
You have to define
-
as
token_separators
while creating the collection. E.g.
Copy code
{
  "name": "docs",
  "token_separators": [
    "-"
  ],
  "fields": [
    {
      "name": "title",
      "type": "string"
    },
    {
      "name": "points",
      "type": "int32"
    }
  ]
}
g
Ah perfect, works well, thanks!
🙌 1