# Mapping an index with ruby for partial search

**URL:** <https://discuss.elastic.co/t/mapping-an-index-with-ruby-for-partial-search/213483>\
**Category:** Elasticsearch\
**Created:** [January 1, 2020, 9:03am UTC](https://discuss.elastic.co/t/mapping-an-index-with-ruby-for-partial-search/213483 "2020-01-01T09:03:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaylu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaylu/32/60154_2.png) [@shaylu](https://discuss.elastic.co/u/shaylu)\
**Post date:** [January 1, 2020, 9:03am UTC](https://discuss.elastic.co/t/mapping-an-index-with-ruby-for-partial-search/213483/1 "2020-01-01T09:03:55Z")

</div>

Hello,  
I'm working on an existing code written in ruby (i guess it uses some elasticsearch gem). the elasticsearch version is 5.5.

I'm trying to understand what is going on in a specific part of the code.  
**can someone please help me understand?**

```
mapping dynamic: false do
  indexes :title, type: 'text', analyzer: "name" do
    indexes :partial, type: 'text', analyzer: "autocomplete",
    search_analyzer: "autocomplete_search"
  end
end

```

**does this mean title property has a child field called "partial"?**

---

<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:** [January 29, 2020, 9:03am UTC](https://discuss.elastic.co/t/mapping-an-index-with-ruby-for-partial-search/213483/2 "2020-01-29T09:03:56Z")

</div>

Closed on January 29, 2020, 9:03am UTC

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