lunr-de
v0.1.2
Published
German language extension for lunr.js search engine
Downloads
1
Readme
lunr.de.js - A German language extension for lunr.js
lunr.js is a simple text search engine implemented in JavaScript. lunr.de.js adds a German stop word filter and stemmer to the lunr.js pipeline, thus making text search more robust for German content.
Usage
Make sure to load both the core lunr.js and lunr.de.js extension.
To build the index, use the convenience function lunr.de
instead of lunr
.
lunr.de
adds the German stop word filter and stemmer to the pipeline
instead of the default English one.
Example:
var index = lunr.de(function() {
this.field("title", 10);
this.field("body");
})
Credits
- The list of German stop words has been downladed from brenes's stopwords-filter repository.
- The German stemmer implementation is due to Joder Illi.