typegoose-cursor-pagination icon indicating copy to clipboard operation
typegoose-cursor-pagination copied to clipboard

Autocomplete search

Open voslartomas opened this issue 4 months ago • 4 comments

Hello, is it somehow possible to use autocomplete search?

{
    "$search": {
      "autocomplete": {
        "query": `${request.query.term}`,
        "path": "name",
        "fuzzy": {
          "maxEdits": 2,
          "prefixLength": 3,
        },
      },
    },
  },

This will fail with error like this

unknown top level operator: $search. If you have a field name that starts with a '$' symbol, consider using $getField or $setField.

voslartomas avatar Apr 10 '24 11:04 voslartomas