Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent changes break whole word search #419

Closed
nebulade opened this issue Jul 28, 2017 · 6 comments
Closed

Recent changes break whole word search #419

nebulade opened this issue Jul 28, 2017 · 6 comments
Assignees

Comments

@nebulade
Copy link

@nebulade nebulade commented Jul 28, 2017

Description

The latest release (1.7.5) breaks some search patterns for whole words. In this case typing restor in the search field correctly shows matches for the whole word restore while when the whole word is typed into the search field, the search results are empty.

This can be tested with a small md file with the following contents:

## Restore

Apps can be restored to a previous backup by clicking on the `Restore` button.

The previous version (1.7.4) does not have this issue.

@squidfunk
Copy link
Owner

@squidfunk squidfunk commented Jul 28, 2017

This has to do with the default stemming by lunr, fixed in master which disabled stemming, and about to be released.

@squidfunk squidfunk self-assigned this Jul 28, 2017
@nebulade
Copy link
Author

@nebulade nebulade commented Jul 28, 2017

Thats awesome. Thanks!

@squidfunk
Copy link
Owner

@squidfunk squidfunk commented Aug 2, 2017

Fixed in 1.8.0

@squidfunk squidfunk closed this Aug 2, 2017
@kevung
Copy link

@kevung kevung commented Jun 6, 2020

Hello everybody,
I encounter the same problem as @nebulade with mkdocs-material-5.2.2.
Are there other people noticing this regression?

@kevung
Copy link

@kevung kevung commented Jun 6, 2020

The problem I encounter seems to be a problem from Mkdocs-Material.
The search is fully working when the language is in english, but fails in french, for example.

The search is fine with a mkdocs.yml:

site_name: test

theme:
  language: en
  name: material

plugins:
  - search

use_directory_urls: false
nav:
  - Intro: index.md

but does not work with this mkdocs.yml

site_name: test

theme:
  language: fr
  name: material

plugins:
  - search

nav:
  - Intro: index.md
@squidfunk
Copy link
Owner

@squidfunk squidfunk commented Jun 6, 2020

Possibly related to #1603 and #1675

@squidfunk squidfunk mentioned this issue Jun 6, 2020
3 of 4 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.