# Synonym indexing VS Payload indexing (and queries)

**URL:** <https://discuss.elastic.co/t/synonym-indexing-vs-payload-indexing-and-queries/136753>\
**Category:** Elasticsearch\
**Created:** [June 20, 2018, 7:04pm UTC](https://discuss.elastic.co/t/synonym-indexing-vs-payload-indexing-and-queries/136753 "2018-06-20T19:04:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljak/32/40307_2.png) [@ljak](https://discuss.elastic.co/u/ljak)\
**Post date:** [June 20, 2018, 7:04pm UTC](https://discuss.elastic.co/t/synonym-indexing-vs-payload-indexing-and-queries/136753/1 "2018-06-20T19:04:10Z")

</div>

Hello everyone,

I'm interested into adding meta-information "on" tokens/phrases (like tagging metrics info as "measures" or adding concept synonyms to written -- in the initial doc -- concepts). I just read about Synonym indexing ([https://www.elastic.co/blog/multitoken-synonyms-and-graph-queries-in-elasticsearch](https://www.elastic.co/blog/multitoken-synonyms-and-graph-queries-in-elasticsearch)) and Payload indexing ([https://lucidworks.com/2009/08/05/getting-started-with-payloads/](https://lucidworks.com/2009/08/05/getting-started-with-payloads/)) and...I'm not sure which one could be the best match to my use cases ?

Synonym indexing seems to be well covered into the Elasticsearch documentation. "Code" samples and blogs cover the available functionalities. It does not seem the case for Payload indexing ; only [https://www.elastic.co/guide/en/elasticsearch/reference/6.2/analysis-delimited-payload-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.2/analysis-delimited-payload-tokenfilter.html) mention the payloads existence into the docs. But you can find some questions and answers on the web, sometimes.

Synonym indexing seems easy to implement but we do not seem to have all the tools to manage the added contents (for instance, modifying the underlying model -- vector space model -- according to the new content). And it seems the opposite for payloads... To that, I'm not sure that I can add anything I want into the byte arrays of payloads.

Any information, ideas, ... ? Could be nice to have the differences/similarities/advantages/etc between the 2 functionality !

Thanks !

---

<div class="post-metadata">

**Author:** ![ljak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ljak/32/40307_2.png) [@ljak](https://discuss.elastic.co/u/ljak)\
**Post date:** [June 22, 2018, 7:01pm UTC](https://discuss.elastic.co/t/synonym-indexing-vs-payload-indexing-and-queries/136753/2 "2018-06-22T19:01:55Z")

</div>

No idea or remarks ?

Thanks

---

<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 20, 2018, 7:01pm UTC](https://discuss.elastic.co/t/synonym-indexing-vs-payload-indexing-and-queries/136753/3 "2018-07-20T19:01:59Z")

</div>

Closed on July 20, 2018, 7:01pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
