# Elastics mapping

**URL:** <https://discuss.elastic.co/t/elastics-mapping/106379>\
**Category:** Elasticsearch\
**Created:** [November 4, 2017, 3:43pm UTC](https://discuss.elastic.co/t/elastics-mapping/106379 "2017-11-04T15:43:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [November 4, 2017, 3:43pm UTC](https://discuss.elastic.co/t/elastics-mapping/106379/1 "2017-11-04T15:43:27Z")

</div>

I want to create mapping but can anyone clear me what is "search\_result\_data" and "search\_data". So it will be best way to define mapping or not.

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 4, 2017, 8:51pm UTC](https://discuss.elastic.co/t/elastics-mapping/106379/2 "2017-11-04T20:51:01Z")

</div>

Where are you seeing this?

---

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [November 5, 2017, 1:28am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/3 "2017-11-05T01:28:05Z")

</div>

[https://project-a.github.io/on-site-search-design-patterns-for-e-commerce/#multi-term-auto-completion](https://project-a.github.io/on-site-search-design-patterns-for-e-commerce/#multi-term-auto-completion)

I saw this here....Kindly tell is this possible...

Thank you.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 5, 2017, 1:35am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/4 "2017-11-05T01:35:55Z")

</div>

That looks like the document they are sending to Elasticsearch.

---

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [November 5, 2017, 1:39am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/5 "2017-11-05T01:39:48Z")

</div>

Yes Mark...They are doing mapping....I want to know this type of keyword supported by elastic now...or benefits of this...bcz I did mapping like below

"mappings": {  
"product": {  
"\_all": {  
"analyzer": "index\_nGram\_analyzer",  
"search\_analyzer": "searchText\_analyzer",  
"search\_quote\_analyzer":"index\_nGram\_analyzer"

```
     },
     "properties": {
        "title": {
           "type": "text",
           "include_in_all": true
        },
        "brand": {
           "type": "text",
           
		   "include_in_all": true
        },
        "category": {
           "type": "text",
           
		   "include_in_all": true
        },
        "boostedterm": {
           "type": "text",
           "include_in_all": true
        },
        "ram": {
           "type": "integer",
          
           "include_in_all": false
           
        },
		"rom": {
           "type": "integer",
          
           "include_in_all": false
        },
		"color": {
           "type": "text",
           
           "include_in_all": false
        },
		"site": {
           "type": "integer",
         
           "include_in_all": false
        },
        "price": {
           "type": "float",
		   
           "include_in_all": false
        }

```

Or can we also create like that ...if it beneficial or not..

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 5, 2017, 1:40am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/6 "2017-11-05T01:40:26Z")

</div>

Beneficial for what?  
It's not really clear what you are trying to do here sorry.

---

<div class="post-metadata">

**Author:** ![Shekhar\_Pandey](https://avatars.discourse-cdn.com/v4/letter/s/7ab992/32.png) [@Shekhar\_Pandey](https://discuss.elastic.co/u/Shekhar_Pandey)\
**Post date:** [November 5, 2017, 1:43am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/7 "2017-11-05T01:43:56Z")

</div>

I did mapping...where I define three analyzer settings and using that name here in mapping...In mapping I define there data type and either they have to do analyze or not. So I just want to know my mapping is right or not. Bcz when I saw that link mapping...they define some other way..they are using facet which is now agg word..I think....so can u just tell me...my mapping is correct or not. Or any benefit if I will define like that.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 5, 2017, 2:02am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/8 "2017-11-05T02:02:12Z")

</div>

Again, right for what? If your use case exactly the same as theirs?

---

<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:** [December 3, 2017, 2:02am UTC](https://discuss.elastic.co/t/elastics-mapping/106379/9 "2017-12-03T02:02:36Z")

</div>

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