Full text search iterating through path

Hi, I am fairly new to mongo and iam using a full text search (beta) which is recently launched by mongodb.

I am creating an aggregation and running a search for list of paths.
My question is, is there any way to loop through all the paths automatically without defining each path (consisting of arrays and array of objects) ?
If so how can I achieve that ?

Thanks in advance

@David_Barrington Welcome to the forum!

Can you provide an example document and the query/outcome you are trying to match?

You can include multiple fields in an Atlas search index definition and use either static mapping (if all fields are known in advance) or dynamic mapping (index all fields in a collection as needed). You can also specify fields to search using the path parameter: Atlas Search Path Construction.

Regards,
Stennie

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.