new_in_town
08/08/2024, 1:44 PMnum_typos=1
and stem=false
Well, as far as I understand the edit distance "German"-"permanent" is more than one!
Is it a bug?
Field definitions:
{
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "title",
"optional": false,
"sort": false,
"stem": false,
"type": "string"
},
{
"facet": false,
"index": true,
"infix": false,
"locale": "",
"name": "content",
"optional": false,
"sort": false,
"stem": false,
"type": "string"
}
Query in JS client:
typesense.collections('test1').documents().search({
'q': 'German',
'drop_tokens_threshold': 0,
'num_typos': 1,
'query_by': 'title, content',
})
And it matches this: "... This is a permanent job opportunity ..."
There is no "German" in this collection.
And when I set drop_tokens_threshold=0 - no results returned (as expected)