Skip to content

word separators in searching #867

Closed

Description

@randy3k

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?

Activity

  1. waylan commented on Mar 31, 2016

    @waylan
    Contributor

    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?

  2. modified the milestone: 0.16 on Apr 27, 2016
  3. waylan commented on May 25, 2016

    @waylan
    Contributor

    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).

  4. modified the milestones: 0.16, 1.0.0 on May 25, 2016
  5. self-assigned this
    on Dec 2, 2016
  6. added 3 commits that reference this issue on Feb 1, 2018
    0cd30c4
    f2d2c13
    986fc4e
  7. added a commit that references this issue on Feb 27, 2018
    ad6c8c1
  8. added a commit that references this issue on Mar 6, 2018
    dd7e2d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions