So I'm using Gentics Mesh and a "middleware". From this middleware, I'm making a request to the mesh
API that forwards requests to elasticSearch
. At moment I don't want to use GraphQL API so that's why I'm using /rawSearch
.
The problem becomes that in such query it will query all indices and I would like to decide which one it queries, just like elasticSearch
does, for example, /index1,index2/_search.
Is it possible to limit the search to specific indexes or am I forced to use GraphQL?
It is not possible to provide the exact index name yourself.
Maybe it useful for your use case to use the /api/v2/:projectName/rawSearch
which narrows the indices down to a certain project within mesh.