# Completion Suggester - Access payload from another Index

**URL:** <https://discuss.elastic.co/t/completion-suggester-access-payload-from-another-index/23113>\
**Category:** Elasticsearch\
**Created:** [April 6, 2015, 10:06pm UTC](https://discuss.elastic.co/t/completion-suggester-access-payload-from-another-index/23113 "2015-04-06T22:06:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ap1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Ap1](https://discuss.elastic.co/u/Ap1)\
**Post date:** [April 6, 2015, 10:06pm UTC](https://discuss.elastic.co/t/completion-suggester-access-payload-from-another-index/23113/1 "2015-04-06T22:06:54Z")

</div>

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](mailto: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](https://groups.google.com/d/msgid/elasticsearch/bb597783-da87-4776-aa6f-2447771a9615%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:21am UTC](https://discuss.elastic.co/t/completion-suggester-access-payload-from-another-index/23113/2 "2017-07-06T00:21:21Z")

</div>


