Completion Suggester - Access payload from another Index

I have few indices A,B,C each having userId,name,etc.

I want to search text in A and if a hit is found, the payload should return
the following:

  1. userId, name of that doc in Index A
  2. documentID/s of Index B,C

This behavior extends to the search in Index B and C as well.

Step 1. How do I store this in the payload for each Index ?

The structure for payload looks like, eg.A
"payload" : {

  • "userId" : "A1",*
    "name" : a1",
    "documentIDForB" : ,
    "listDocumentIDForC" : []
    }

Step 2. How do I retrieve the payload information directly from Index B,C
? Is this treated as any other regular field when retrieving info from a
doc in ES?

Thanks

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/bb597783-da87-4776-aa6f-2447771a9615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.