James Kirkby
02/24/2025, 12:45 PM®
character with a space. We've tried following the docs here: https://typesense.org/docs/guide/tips-for-searching-common-types-of-data.html
We've tried using the following schema when creating the collection:
token_separators: ['®']
However the Typesense server gives us the following error (v28)
Error creating collection_name RequestMalformed: Request failed with HTTP code 400 | Server said: `token_separators` should be an array of character symbols.
Example collection data:
[
{
"model": "Product 1 with something"
},
{
"model": "Product®1 with something else"
}
]
Example query:
model="Product 1"
Results:
- Product 1 with something
Expected results:
- Product 1 with something
- Product®1 with something else
Are we going about this the wrong way?Kishore Nallan
02/24/2025, 12:47 PMError creating collection_name RequestMalformed: Request failed with HTTP code 400 | Server said:Please post the code that creates the collection.should be an array of character symbols.token_separators
James Kirkby
02/24/2025, 12:49 PMawait client.collections().create({
name: 'products',
fields: [
{ name: '.*', type: 'auto' as const },
{ name: 'position', type: 'int32', sort: true },
{ name: 'model', type: 'string', facet: true, infix: true, },
],
default_sorting_field: "position",
token_separators: ["®"],
});
fields
are trimmed down for brevityKishore Nallan
02/24/2025, 12:58 PM®
symbol is multi-byte sequence.James Kirkby
02/24/2025, 1:01 PMKishore Nallan
02/24/2025, 1:03 PMJames Kirkby
02/24/2025, 1:04 PMAdam Al-dbhany
02/24/2025, 9:25 PM