Searching "C++" in Typesense Results in C# Instead

TLDR Gines had issues with searching "C++" in Typesense. Kishore Nallan suggested enabling indexing of symbols during collection creation to resolve the issue.

Powered by Struct AI
Nov 11, 2022 (13 months ago)
Photo of md5-7d463c0d7894ed9aa348f9842f6bc7b5
12:12 PM
Hello, quick question:

How can I manage to search "C++" in typesense? it is giving me C# results instead of c++, I tried writing "C plus plus" as well.

I am using typesense 0.24.0rcn31 and my search is made with instantsearch and php. Thank you!
Kishore Nallan
Photo of md5-4e872368b2b2668460205b409e95c2ea
Kishore Nallan
12:14 PM
👋 You have to enabled indexing of symbols during collection creation. Like this:

        "name": "docs",
        "fields": [
          {"name": "title", "type": "string"}
Kishore Nallan
12:15 PM
This would index + and ensure that C++ is found.