Configuring Search for Cities with '-' Characters
TLDR gab asked how to configure search for cities with '-' characters. Kishore Nallan guided to define '-' as token_separators
while creating the collection.
1
Apr 19, 2022 (18 months ago)
gab
07:17 AMI have cities containing '-' characters like this one: 'Plan-les-ouates'.
How can I configure the search so I can found them when querying without the '-' like this: 'plan les ouates' ?
Thanks
Kishore Nallan
07:22 AM-
as token_separators
while creating the collection. E.g.{
"name":"docs",
"token_separators":[
"-"
],
"fields":[
{
"name":"title",
"type":"string"
},
{
"name":"points",
"type":"int32"
}
]
}
gab
07:25 AM1
Typesense
Indexed 2776 threads (79% resolved)
Similar Threads
Issues with Repeated Words and Hyphen Queries in Typesense API
JinW discusses issues with repeated word queries and hyphen-containing queries in Typesense. Kishore Nallan offers possible solutions. During the discussion, Mr seeks advice on `token_separators` and how to send custom headers. Issues remain with repeated word queries.
Inconsistent Search Results in Typesense UI vs Dashboard
Abhishek reports inconsistent search results in the typesense UI vs dashboard integration when using page rank with Docusaurus plugin. Jason suggests creating a GitHub issue while Abhishek seeks clarification on prioritizing exact matches.
Docsearch Custom Settings in Typesense Scraper
Marcos wants to specify `token_separators` and `symbols_to_index` without forking the docsearch scraper. Jason suggests opening a GitHub issue to add support for custom settings in the scraper.