Skip to content

Question on alternative alphabet searches in Lunr.js #58

Answered by evanwill
geniza asked this question in Q&A
Discussion options

You must be logged in to vote

Good question @geniza !
I want to clarify that the link you have above is to a python version of Lunr that can do some more complicated things--CollectionBuilder is using Lunr.js so be sure to look for docs specifically related to it.
There is a couple of things you can do.

First, quick fix to get it working (based on a solution in an Issue in Lunr.js):

  • In your project, look for the file "_includes/js/lunr-js.html".
  • at line 14 you will see a commented out option that looks like //this.pipeline.remove(lunr.trimmer), on a new line below that, add the code this.pipeline.reset(). Save the file. This will just remove the english specific processing, so that all the characters will be indexed …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@evanwill
Comment options

@geniza
Comment options

Answer selected by geniza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants