Elastics mapping

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.

Where are you seeing this?

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.

That looks like the document they are sending to Elasticsearch.

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..

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

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.

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

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