Alex Kalyvitis
08/06/2025, 2:17 PMtoken_separation
. Typesense version 29.0.
Here’s the field excerpt from the schema:
{
"facet": true,
"index": true,
"infix": false,
"locale": "",
"name": "contactPersonEmail",
"optional": true,
"sort": false,
"stem": false,
"stem_dictionary": "",
"store": true,
"token_separators": [
".",
"-",
"_",
"@"
],
"type": "string"
}
And the collection-level token separators:
"token_separators": [
".",
"-",
"_"
]
When executing this query (q=“example”):
GET /collections/<collection>/documents/search?filter_by=&q=example&query_by=contactPersonEmail HTTP/1.1
We notice that the response highlights the wrong token (org, net, com instead of example).
"highlight": {
"contactPersonEmail": {
"matched_tokens": [
"org"
],
"snippet": "269489-keshawn@example.<mark>org</mark>"
}
}
Is there something we’re doing wrong either with the query or shema? Or is there a bug in the latest version? Apologies if this was already reportedFanis Tharropoulos
08/06/2025, 3:00 PMAlex Kalyvitis
08/06/2025, 3:01 PMFanis Tharropoulos
08/06/2025, 3:02 PMAlex Kalyvitis
08/06/2025, 3:03 PMAlex Kalyvitis
08/06/2025, 3:22 PMFanis Tharropoulos
08/07/2025, 10:55 AMAlex Kalyvitis
08/07/2025, 12:17 PMAlex Kalyvitis
08/07/2025, 12:18 PMFanis Tharropoulos
08/07/2025, 3:09 PM