In is used for checking if the value is in a list of values. Suppose the value for the field foo is "bar", then filter: { foo: { in: ["foo", "bar", baz"] } } will match. For autocompletion you’d better use regex indices maybe? (Not an expert)
2 Likes