Request for Regular Expression Support in Search Query
TLDR em1nos inquired about adding regex support to search queries, which Jason confirmed is not feasible due to indexing complexities.
Jul 02, 2022 (16 months ago)
em1nos
08:03 PMSamsung [A|S][\d]{1,2}
to find "Samsung A13" together with "Samsung S22" (and more)...Jason
08:31 PMTypesense
Indexed 2776 threads (79% resolved)
Similar Threads
Sanitizing Queries with Special Characters in Typesense
Daniel asked about sanitizing queries containing special characters in Typesense. Kishore Nallan recommended using backticks for literal string values and fixing the schema for field names with special characters, sticking to alphanumeric and underscores.
Fine-Tuning Typesense Queries for Better Results with Plural Words
Sergio seeks advice on improving Typesense queries for plural words. Kishore Nallan suggests increasing the typo tokens threshold and adjusting the min_len_1typo and min_len_2typo params. Sergio confirms better results after making these changes.
Discussing Typo Tolerance in TypeSense Search
Greg conveys a client's query about TypeSense's typo-tolerance search. Jason explains it covers most plurals unless more than 2 characters are changed. They agree that significantly exceeding a levenshtein distance of 2 slows the query and/or provides inaccurate results.