# Structure related query

**URL:** <https://discuss.elastic.co/t/structure-related-query/55616>\
**Category:** Elasticsearch\
**Created:** [July 15, 2016, 12:43pm UTC](https://discuss.elastic.co/t/structure-related-query/55616 "2016-07-15T12:43:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![N\_M\_10](https://avatars.discourse-cdn.com/v4/letter/n/f19dbf/32.png) [@N\_M\_10](https://discuss.elastic.co/u/N_M_10)\
**Post date:** [July 15, 2016, 12:43pm UTC](https://discuss.elastic.co/t/structure-related-query/55616/1 "2016-07-15T12:43:40Z")

</div>

I have 500 regions(areas) in our country India, and i was trying to figure it out what will be the most optimal way to store this doc in elasticsearch?

KTYM in TAGS is one of the 500 regions

The reason why i wanna do it because i wanna give different \_boost value to same doc in different region.

So which structure will be most ideal ?

one way is to store 500 such docs with different region , but then consider i have 200 \* 500 leads to a huge number, so was finding a way to acheive

```
 {
    "_index": "in",
    "_type": "event",
    "_id": "KTYM-ET",
    "_version": 2,
    "_score": 1,
    "_source": {
    "GRP": "Event",
    "TITLE": "Asia Pacific Boxing Championship",
    "TAGS": [
    "SP"
    ,
    "KTYM"
    ],
    "_boost": 11.79,

    }
 }
```

---

<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 5, 2017, 10:35pm UTC](https://discuss.elastic.co/t/structure-related-query/55616/2 "2017-07-05T22:35:09Z")

</div>


