Context
The $search query should be more flexible. Our default may be ok, but one should be able to override it with something arbitrarily flexible. (e.g. a compound filter with text wildcard star).
We do this sort of open-ended style in post-filter.
pipeline = [ { "$search": { "index": index_name, "text": {"query": query, "path": search_field}, } } ]
Definition of done
What must be done to consider the task complete?
Pitfalls
What should the implementer watch out for? What are the risks?