79334356

Date: 2025-01-06 21:19:59
Score: 0.5
Natty:
Report link

Utilizing the Full Text Search capability appears to provide the solution based on this post.

On the MongoDB create a text index, on the Foo collection, using a wildcard to index all document content. In my API I can then perform the search using that index:

var filter = Builders<Foo>.Filter.Text(request.Term);
await _foo.Find(filter).ToListAsync()
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Leigh.D