You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose in the markdown file, I have a "word": "Foo.bar", the current search function is not able to pick "Foo.bar" if I search for "bar". May be some settings in lunr.js will do the job?
It appears that you would need to override lunr.tokenizer.seperator. As the code currently stands this change would be made in search.js which you could override using theme_dir (place a modified copy of search.js in the appropriate subdir). However, if this proposed fix to #869 is accepted, then index creation will be hardcoded into the Python source and no longer overridable by theme customization.
As I've been playing with search the last few days, I'm thinking we may need to add some search related config settings. One for this issue (word separators) and one for language support (see #826). Possibly even one to disable search support altogether?
Activity
waylan commentedon Mar 31, 2016
It appears that you would need to override
lunr.tokenizer.seperator. As the code currently stands this change would be made in search.js which you could override usingtheme_dir(place a modified copy ofsearch.jsin the appropriate subdir). However, if this proposed fix to #869 is accepted, then index creation will be hardcoded into the Python source and no longer overridable by theme customization.As I've been playing with search the last few days, I'm thinking we may need to add some search related config settings. One for this issue (word separators) and one for language support (see #826). Possibly even one to disable search support altogether?
waylan commentedon May 25, 2016
I'm switching the milestone for this issue to 1.0 as this would be part of the search refactor which I'm working on for 1.0 (see my previous comment).
Add seperator config option to search.
Add seperator config option to search.
Add seperator config option to search.
Add seperator config option to search.
Refactor search plugin (#1418)