Querying with Special Characters in Collections
TLDR Hariharan asked about querying with special characters. Kishore Nallan explained to use symbols_to_index
configuration while creating the collection.
Powered by Struct AI
3
7mo
Solved
Mar 14, 2023 (7 months ago)
Hariharan
Hariharan
09:03 AMHi! Is it possible to query using special characters? Currently search query with only special characters results in showing all records. But expectation is not to return any data if no special characters in the field which we search.
Kishore Nallan
Kishore Nallan
12:32 PMYes, please use
symbols_to_index
configuration while creating the collection.12:33
Kishore Nallan
12:33 PMcurl -k "" -X POST -H "Content-Type: application/json" \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" -d '{
"name": "coll_name",
"fields": [
{"name": "title", "type": "string" }
], "symbols_to_index": ["+"]
}'
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2776 threads (79% resolved)
Similar Threads
Handling Special Characters in Search Queries
Sidharth asks how to handle special characters in search queries. Kishore Nallan suggests using `symbols_to_index` configuration and provides an example to help.
6
4mo
Solved
Querying Special Characters in Database
robert had difficulty searching for `$` in documents. Jason explained how to include special characters in search indexing.
3
15mo
Solved
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.
4
23mo
Solved