I'm currently learning AppSearch so that I can use it for a certain project.
So far so good, but I've hit a wall. One thing I know is that AppSearch indexes
documents to elasticsearch. But I find AppSearch to be more opinionated in terms
of how flexible you'll be with the documents. For context sake, my use case is as below.
We index different products using AppSearch because it does a lot of the hard work for us in the background when creating mappings and documents into elasticsearch. But you cannot run more advanced queries through appsearch like you would with elasticsearch.
Consider a query like this that is meant to find documents that are like the document with _id: xxxxx from a certain _index: xxxxxxx:
From the results, I see that AppSearch actually has the engine_id and the id of the document as indexed into elasticsearch.
As seen Here from field id and engine_id:
Now that you have an idea of the nature of my problem, My question is:
How can Retrieve the engine_id and id of the document so that I can reuse the same indices and ids from elasticsearch to run more complex queries?