I want to create an index in atlas for some files, and one of them is an array items, with some fileds. This is the json.
{
"mappings": {
"dynamic": false,
"fields": {
"client": {
"analyzer": "lucene.whitespace",
"searchAnalyzer": "lucene.whitespace",
"type": "string"
},
"items": {
"dynamic": true,
"fields": {
"item1": {
"analyzer": "lucene.whitespace",
"searchAnalyzer": "lucene.whitespace",
"type": "string"
},
"item2": {
"analyzer": "lucene.whitespace",
"searchAnalyzer": "lucene.whitespace",
"type": "string"
}
},
"type": "embeddedDocuments"
},
"shipping_code": {
"analyzer": "lucene.whitespace",
"searchAnalyzer": "lucene.whitespace",
"type": "string"
}
}
}
}
I wnand to search for these fields, for this reason I use dynamic: false, so I’ve added this json in atlas search in JSON editor and i don’t get results for item1, item2, for the items of the
array. Is the json ok?, is something missing in the json?