简体   繁体   中英

How can I specify what schemas ( or indices ) I want to query from Gentics Mesh (no graphQL API)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM