Describe the bug
Usually e.g. Chris matches Christopher, but setting tolerance to 1 makes it not match anymore. I'm not sure whether this is intentional, but it's at least surprising.
To Reproduce
const db = await create({
schema: {
name: 'string',
} as const,
components: {
tokenizer: {
stemming: true,
stopWords: englishStopwords,
},
},
})
await insert(db, { name: "Christopher" })
const result = await search(db, { term: 'Chris', tolerance: 1 })
// result should contain the document, but does not
Expected behavior
Ideally I'd like to be able to search with tolerance and allow matching prefixes.
Environment Info
Affected areas
Search
Additional context
If it's not intentional, I could look into fixing this.
Describe the bug
Usually e.g.
ChrismatchesChristopher, but settingtoleranceto 1 makes it not match anymore. I'm not sure whether this is intentional, but it's at least surprising.To Reproduce
Expected behavior
Ideally I'd like to be able to search with tolerance and allow matching prefixes.
Environment Info
Affected areas
Search
Additional context
If it's not intentional, I could look into fixing this.