# Index configurations file (mappings & settings) in ES 1.7.x

**URL:** <https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484>\
**Category:** Elasticsearch\
**Created:** [September 2, 2015, 4:22am UTC](https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484 "2015-09-02T04:22:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SAURAV\_PAUL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurav_paul/32/1277_2.png) [@SAURAV\_PAUL](https://discuss.elastic.co/u/SAURAV_PAUL)\
**Post date:** [September 2, 2015, 4:22am UTC](https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484/1 "2015-09-02T04:22:40Z")

</div>

Hi,  
Does this below index settings & mapping correct?

{  
"mappings":{  
"record\_type\_1":{  
"properties":{  
"column\_1":{  
"fields":{  
"metaphone":{ "type":"string", "analyzer":"data\_metaphone" },  
"partial":{ "search\_analyzer":"full\_data", "index\_analyzer":"partial\_data", "type":"string" },  
"column\_1":{ "type":"string", "analyzer":"full\_data" }  
}  
"type" : "multi\_field",  
"path": "just\_name",  
}  
}  
}  
},  
"settings":{  
"number\_of\_shards":3,  
"analysis":  
{  
"filter":{  
"data\_ngrams":  
{  
"side":"front",  
"max\_gram":10,  
"min\_gram":1,  
"type":"edgeNGram"  
},  
"data\_metaphone":  
{  
"replace":false,  
"encoder":"metaphone",  
"type":"phonetic"  
}  
},  
"analyzer":{  
"full\_data":  
{  
"filter":[  
"standard",  
"lowercase",  
"asciifolding"  
],  
"type":"custom",  
"tokenizer":"standard"  
},  
"data\_metaphone":{  
"filter":[  
"data\_metaphone"  
],  
"type":"custom",  
"tokenizer":"standard"  
},  
"partial\_data":{  
"filter":[  
"standard",  
"lowercase",  
"asciifolding",  
"data\_ngrams"  
],  
"type":"custom",  
"tokenizer":"standard"  
}  
}  
}  
}  
}

I have followed the below link  
[http://elasticsearch-users.115913.n3.nabble.com/help-needed-with-the-query-td3177477.html#a3178856](http://elasticsearch-users.115913.n3.nabble.com/help-needed-with-the-query-td3177477.html#a3178856)

---

<div class="post-metadata">

**Author:** ![SAURAV\_PAUL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurav_paul/32/1277_2.png) [@SAURAV\_PAUL](https://discuss.elastic.co/u/SAURAV_PAUL)\
**Post date:** [September 2, 2015, 4:27am UTC](https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484/2 "2015-09-02T04:27:19Z")

</div>

The below configuration am I missing anything or doing anything wrong?

```
{  
   "mappings":{  
      "record_type_1":{  
         "properties":{  
            "column_1":{  
               "fields":{  
                  "metaphone":{ "type":"string", "analyzer":"data_metaphone" },
                  "partial":{ "search_analyzer":"full_data", "index_analyzer":"partial_data", "type":"string" },
				  "column_1":{ "type":"string", "analyzer":"full_data" }
               }
                "type" : "multi_field",
				"path": "just_name",
			},
			 "column_2":{  
               "type":"string",
               "analyzer":"simple",
               "similarity":"attr_similarity",
               "null_value":"NA",
               "include_in_all":true
            }
         }
      }
   },
   "settings":{  
      "number_of_shards":3,
      "analysis":
	  {  
         "filter":{  
            "data_ngrams":
			{  
               "side":"front",
               "max_gram":10,
               "min_gram":1,
               "type":"edgeNGram"
            },
            "data_metaphone":
			{  
               "replace":false,
               "encoder":"metaphone",
               "type":"phonetic"
            }
         },
         "analyzer":{  
            "full_data":
			{  
               "filter":[  
                  "standard",
                  "lowercase",
                  "asciifolding"
               ],
               "type":"custom",
               "tokenizer":"standard"
            },
            "data_metaphone":{  
               "filter":[  
                  "data_metaphone"
               ],
               "type":"custom",
               "tokenizer":"standard"
            },
            "partial_data":{  
               "filter":[  
                  "standard",
                  "lowercase",
                  "asciifolding",
                  "data_ngrams"
               ],
               "type":"custom",
               "tokenizer":"standard"
            }
         },
		 "similarity":{  
         "attr_similarity":{  
            "type":"BM25",
            "k1":"2",
            "b":"0.75",
            "discount_overlaps":"true"
         }
      }
      }
   }
}
```

---

<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:** [September 2, 2015, 4:30am UTC](https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484/3 "2015-09-02T04:30:06Z")

</div>

Going by line counts, you need a comma on line 10, and remove the one at the end of line 12.

---

<div class="post-metadata">

**Author:** ![SAURAV\_PAUL](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurav_paul/32/1277_2.png) [@SAURAV\_PAUL](https://discuss.elastic.co/u/SAURAV_PAUL)\
**Post date:** [September 2, 2015, 5:25am UTC](https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484/4 "2015-09-02T05:25:41Z")

</div>

Once I have executed it and to view the mapping I have used [http://localhost:9200/inventory\_index\_v4/\_mapping/record\_type\_1](http://localhost:9200/inventory_index_v4/_mapping/record_type_1) : The output of the mapping looks like

```
    {
  "index_v4": {
    "mappings": {
      "record_type_1": {
        "properties": {
          "column_1": {
            "type": "string",
            "analyzer": "full_data",
            "path": "just_name",
            "fields": {
              "metaphone": {
                "type": "string",
                "analyzer": "data_metaphone"
              },
              "partial": {
                "type": "string",
                "index_analyzer": "partial_data",
                "search_analyzer": "full_data"
              }
            }
          },
          "column_2": {
            "type": "string",
            "analyzer": "simple",
            "null_value": "NA",
            "include_in_all": true
          }
        }
      }
    }
  }
}

```

I am not able to see "type" : "multi\_field",  
"path": "just\_name" these configuration?

---

<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:** [July 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/index-configurations-file-mappings-settings-in-es-1-7-x/28484/5 "2017-07-05T23:52:42Z")

</div>


