Hi! Is it possible to query using special characte...
# community-help
h
Hi! 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.
k
Yes, please use
symbols_to_index
configuration while creating the collection.
Copy code
curl -k "<http://localhost:8108/collections>" -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": ["+"]
      }'