# Facet - Authors field with more names with separated values

**URL:** <https://discuss.elastic.co/t/facet-authors-field-with-more-names-with-separated-values/265017>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [February 22, 2021, 1:17am UTC](https://discuss.elastic.co/t/facet-authors-field-with-more-names-with-separated-values/265017 "2021-02-22T01:17:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrea\_Epifani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrea_epifani/32/84279_2.png) [@Andrea\_Epifani](https://discuss.elastic.co/u/Andrea_Epifani)\
**Post date:** [February 22, 2021, 1:17am UTC](https://discuss.elastic.co/t/facet-authors-field-with-more-names-with-separated-values/265017/1 "2021-02-22T01:17:39Z")

</div>

Hi,  
i have indexed my documents with this fields:

- title (text)
- description (text)
- authors (text)

authors contains one or more names separated with comma.  
Is there a method to create facet with the single name and not with the complete string?  
or how can this be done?

Thank you for support

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [February 22, 2021, 2:53pm UTC](https://discuss.elastic.co/t/facet-authors-field-with-more-names-with-separated-values/265017/2 "2021-02-22T14:53:42Z")

</div>

@Andrea_Epifani When you index your authors field in App Search, index it as an array:

{  
"title": "Relevant Search: With Applications for Solr and Elasticsearch",  
"description": "Relevant Search demystifies relevance work...",  
"authors": ["John Berryman", "Doug Turnbull"]  
}

That will let you facet on individual authors.

---

<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:** [March 22, 2021, 2:53pm UTC](https://discuss.elastic.co/t/facet-authors-field-with-more-names-with-separated-values/265017/3 "2021-03-22T14:53:51Z")

</div>

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