Skip to content

Trimmer is missing from search pipelines #532

@dhdaines

Description

@dhdaines

Discovered in lunr.py: yeraydiazdiaz/lunr.py#151 - but the same issue (and a similar workaround) exists in lunr.js. As noted in the example it is actually a pretty serious problem:

const lunr = require("lunr");
const index = lunr(function() {
    this.field("title");
    this.field("body");
    this.add({
        title: "To be or not to be?",
        body: "That is the question!",
    });
});
// Should print something, but doesn't!
console.log(index.search("What is the question?"));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions