Docsearch ignores search by keyword ".NET"


I have the problem with search sites in my documentation by keyword “.NET” When I put this keyword in search box then Algolia returns as results sites with keyword “Net”. So i have only sites contains Network word.
How I can resolve this problem ?


Hi there,

By default, Algolia considers interpunction characters (such as .) as word separators. This means we don’t index them, as we don’t want to have these characters searchable. In your case, you do want the . character searchable, since it’s part of the framework name.

You can make these characters searchable by defining them in separatorsToIndex. Given the title of your post, it seems like you’re using DocSearch. Their documentation explains how to define separatorsToIndex

I hope this helps, let me know if you have any other questions!

1 Like