#community-help

Querying Special Characters in Database

TLDR robert had difficulty searching for $ in documents. Jason explained how to include special characters in search indexing.

Powered by Struct AI

1

3
17mo
Solved
Join the chat
Aug 05, 2022 (17 months ago)
robert
Photo of md5-0ca37054c6c9042aa04fcfb92cc7d99c
robert
05:28 PM
Is $ a protected query char? Can't seem to search $ amongst my text. I could see users wanting to look up % / $ to find numbers in their document
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:29 PM
By default all special characters are stripped before indexing. If you want to include them, you want to specify them in the symbols_to_index setting when creating a collection
robert
Photo of md5-0ca37054c6c9042aa04fcfb92cc7d99c
robert
05:32 PM
Ah. Thanks

1