Facets returned on field ending with + or - chars ...
# community-help
g
Facets returned on field ending with + or - chars are not working. For some reason, when I facet on a field with values (M+, M, M-, NM+, NM, NM-) I get back only 2 facets with one of the M values randomly and one of the NM values randomly. The counts group all the M values together and all the NM values together. Is there a way to escape characters when faceting so it treats them distinctly? Same issue when doing a query - “NM-” returns all the NM values.
k
Yes, please use the
symbols_to_index
configuration while creating the collection to enable indexing of those symbols.
Copy code
{
  "name": "coll_name",
  "fields": [
    {
      "name": "title",
      "type": "string"
    }
  ],
  "symbols_to_index": [
    "+"
  ]
}
g
Thanks for the fast reply - Loving the product and support team!
👍 1
One follow-up: Update Schema in Cloud TS replies: Error: e: Request failed with HTTP code 400 | Server said: Only
fields
can be updated at the moment. Do I need to use API or other easier way to modify an existing schema?
k
You will have to recreate the collection, unfortunately.
Since this configuration affects all indexing of all fields, it is not easy to update it.
g
Makes sense - I will do that. Update would be a nice future feature. Thank you once again.
k
Agreed