Hi, recently I found following symptom when I try to search word with underscore ("_")
let's assume that the word that I search is "__func__".
[1]
when I just type __func__ in search text box:
=> search results include notes including "func" or "__func__", it seems that "_" is ignored but if a note includes "__func__" all "__func__" in the note are still highlighted.
[2]
when I type /"__func__" in search text box:
=> same results as [1]
[3]
if the title of a note include __func__ it appears top of search results.
I don't understand why [2] does not work, it should work according to help.
One drawback of Full Text Search is that it ignores most non-alphabetical characters. However in some cases you might want to search for this too. To do that, you can use basic search. You switch to this mode by prefixing your search with a slash / . This won't provide the benefits of FTS but it will allow searching exactly for what you need. Note that it can also be much slower, even extremely slow, depending on your query.
Try the following search /__func__ to perform a basic search
what I mean is that /__func__ and /"__func__" produces same results..
[1]
if a note includes __func__ in its title and body, it appears top of search results.
but if a note includes __func__ in its body only, it does not appear top of search results (it seems that search engine does not search __func__ in body part of note)
[2]
in other words, if some notes include __func__ in their title, those notes appears top of search results.
but if they don't they don't appear top of search results regardless of search string (__func__ or /__func__ or /"__func__")