openKB icon indicating copy to clipboard operation
openKB copied to clipboard

Search tokenization is done on markdown instead of plain text

Open dsanghan opened this issue 6 years ago • 1 comments

If inside your article, in markdown, if you have say:

This is an example.

This line contains a **bold** word.

The search lib is indexing **bold** instead of bold - so when you use the search bar, you don't get any results for bold, but do get results for **bold**.

dsanghan avatar Aug 18 '17 11:08 dsanghan

What should it be? Rendered HTML? It's one of those things. You could try stripping the tags.

In the end of the day, adding the body to the index was an after thought. Using good tags and title should return the results your users are looking for.

mrvautin avatar Aug 18 '17 16:08 mrvautin