# Region join a multivalued field (maps)

**URL:** <https://discuss.elastic.co/t/region-join-a-multivalued-field-maps/266845>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [March 10, 2021, 5:21pm UTC](https://discuss.elastic.co/t/region-join-a-multivalued-field-maps/266845 "2021-03-10T17:21:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rom1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rom1/32/49699_2.png) [@Rom1](https://discuss.elastic.co/u/Rom1)\
**Post date:** [March 10, 2021, 5:21pm UTC](https://discuss.elastic.co/t/region-join-a-multivalued-field-maps/266845/1 "2021-03-10T17:21:23Z")

</div>

Hi everyone,

Playing with maps on ES 7.10.2, I'm stuck and I need help.

I have a first index containing areas and sub areas (geojson) with a code (ID).  
I have another index containing documents (with a field area\_id)  
--\> I want to display the count of documents on each related region with colors

There is no problem when the field area\_id contains a single value. It works !!

But many of the documents have their field 'area\_id' set to several values (as an Array of value) and in this case regions don't match the documents (and of course the displayed count is wrong).

I created (Ruby in Logstash or painless in scripted field) a new field of type 'keyword' containing all the values separated by space for joining but without success.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [March 10, 2021, 6:21pm UTC](https://discuss.elastic.co/t/region-join-a-multivalued-field-maps/266845/2 "2021-03-10T18:21:10Z")

</div>

Joining does not currently support an array of values or space delimited values. Mind creating an enhancement issue at [https://github.com/elastic/kibana/issues/new?assignees=&labels=&template=Feature\_request.md](https://github.com/elastic/kibana/issues/new?assignees=&labels=&template=Feature_request.md)

Please describe your use case in the issue.

Thanks

---

<div class="post-metadata">

**Author:** ![Rom1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rom1/32/49699_2.png) [@Rom1](https://discuss.elastic.co/u/Rom1)\
**Post date:** [March 12, 2021, 10:08am UTC](https://discuss.elastic.co/t/region-join-a-multivalued-field-maps/266845/3 "2021-03-12T10:08:00Z")

</div>

Thank you @Nathan_Reese for your reply,

It looks like documents are joining correctly this morning .... Maybe I was tired.  
What I've checked and changed are:

- The time range (Maybe the documents didn't match the period)
- I unchecked the option 'Apply global filter' to the displayed areas as these docs don't have the filtered fields...

So I think the feature is already implemented ^^

---

<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:** [April 9, 2021, 10:08am UTC](https://discuss.elastic.co/t/region-join-a-multivalued-field-maps/266845/4 "2021-04-09T10:08:19Z")

</div>

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