# Indexing array list of tags (string)

**URL:** <https://discuss.elastic.co/t/indexing-array-list-of-tags-string/181220>\
**Category:** Elasticsearch\
**Created:** [May 15, 2019, 2:39pm UTC](https://discuss.elastic.co/t/indexing-array-list-of-tags-string/181220 "2019-05-15T14:39:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Enzo\_RC](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enzo_rc/32/45404_2.png) [@Enzo\_RC](https://discuss.elastic.co/u/Enzo_RC)\
**Post date:** [May 15, 2019, 2:39pm UTC](https://discuss.elastic.co/t/indexing-array-list-of-tags-string/181220/1 "2019-05-15T14:39:29Z")

</div>

Hi,

I am stuck on indexing array of strings.

i have a field "tags" with array of strings as you can see on the following picture:

 ![09](https://us1.discourse-cdn.com/elastic/original/3X/a/d/ad075af8016e2a2864de4674516a2e45fa20f785.png)

But after indexing it, i can't filter for specific values within the array.

For example if i want to create a simple pie chart to see the proportion of each tag accross the field i can't, it considers each array of string as a single value.

here is what i get :

 ![41](https://us1.discourse-cdn.com/elastic/original/3X/9/6/96132ee27d3cd06cf42e47e919851dfc7327ff95.png)

i tried multiple way to index this field but i can't figure how to do it properly. In order to be able to filter for only one value of my array and not all the array.

I hope i'm clear.  
I'm using Python API to index my doc.

Here is my mapping

> ```
> "mappings": {
> "properties": {
> "societe": { "type": "keyword" , "null_value" : "NA"},
> "adresse": { "type": "keyword" , "null_value" : "NA"},
> "email": { "type": "keyword" , "null_value" : "NA"},
> "tel": { "type": "keyword" , "null_value" : "NA"},
> "site": { "type": "keyword" , "null_value" : "NA"},
> "tags": { "type": "text" },
> "description": { "type": "text" },
> "typesociete": { "type": "keyword" , "null_value" : "NA"},
> "geoloc": { "type": "geo_point" },
> "CP": { "type": "keyword" , "null_value" : "NA"},
> "num_dep": { "type": "integer" },
> "Occitanie": { "type": "boolean" }
> }
> }
> 
> ```

---

<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:** [June 12, 2019, 2:39pm UTC](https://discuss.elastic.co/t/indexing-array-list-of-tags-string/181220/2 "2019-06-12T14:39:40Z")

</div>

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