Searching for "German" matches "permanent" with `n...
# community-help
n
Searching for "German" matches "permanent" with
num_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:
Copy code
{
      "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:
Copy code
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)