angeloashmore / gatsby-plugin-local-search

Gatsby plugin for providing client-side search for data available in Gatsby's GraphQL layer using a variety of engines
MIT License
51 stars 29 forks source link

feat: add filtering of indexed fields #13

Closed lf- closed 4 years ago

lf- commented 4 years ago

This also fixes a deficiency in the FlexSearch index creation where we were previously and incorrectly indexing the IDs (content of the ref field), which was not the case for lunr indexes.

Fixes #5

angeloashmore commented 4 years ago

Hi @lf-, thanks for the PR. Sorry this was stagnant for so long.

I added your changes to master but altered it to remove the use of Ramda.

The changes are published in v1.1.0. Thanks!