Typesense Username Search Issue with Dashes or Underscores
TLDR Jonathan had issues with searching for usernames with dashes or underscores in Typesense. Kishore Nallan advised using the symbols_to_index
parameter to index special characters.
Jan 05, 2023 (8 months ago)
Jonathan
03:30 AMHowever, it seems when I type in dashes or underscores, typesense doesn’t filter down the results at all. How can I change this behavior? Ideally, when i type in a dash, it should show only results where a dash is in the field.
Kishore Nallan
03:58 AMIf you want to index and make "-" searchable, take a look at the
symbols_to_index
param here: https://typesense.org/docs/0.23.1/api/collections.html#schema-parametersJan 06, 2023 (8 months ago)
Jonathan
11:38 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Query on Typesense Indexing Special Characters
JinW inquired about Typesense indexing .(period) and synonyms stripping out the period, Jason clarified that from version 0.22, Typesense can index special characters and suggested using 0.22.0.rcs39.
Querying with Special Characters in Collections
Hariharan asked about querying with special characters. Kishore Nallan explained to use `symbols_to_index` configuration while creating the collection.
User Search Functionality in Typesense
User Lukas brought up an issue with Typesense's username search functionality. hi019 directed them to a relevant thread, and Kishore Nallan confirmed ongoing work on infix search.