-
I made a search index using atlas (https://www.mongodb.com/docs/atlas/atlas-search/tutorial/create-index/). Now I want to query it. I thought using this would be smort: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Do you have some code example that always returns an empty array? |
Beta Was this translation helpful? Give feedback.
-
I got it: const workflowData: Array<WorkflowType> = await workflow
.aggregate()
.search({
// queryString: { defaultPath: "title", query: args },
text: {
query: args,
path: {
wildcard: "*",
},
},
index: "index3",
}); I was too stupid to understand how aggregations work. |
Beta Was this translation helpful? Give feedback.
I got it:
I was too stupid to understand how aggregations work.