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

Exclude field names from flexsearch index #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidkrijgsman
Copy link

Currently field names are included in the index when using flexsearch. If, for example, you use a title field, the index will include the word 'title' (and its base variations) as well. So searching for 'title' would return every single document, because every document had 'title' included in the stringified content.

The change in this PR prevents this by just stringifying the document field values, instead of the entire document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant