Hello,
because i don't find any helpfull answear. I have to ask you how can i get store nested field from search.
I have this mapping
{
"spm_1.1": {
"mappings": {
"order": {
"properties": {
"dateCreated": {
"type": "date",
"store": true,
"format": "dd.MM.yyyy HH:mm:ss"
},
"note": {
"type": "text",
"analyzer": "lowerCaseCzechAnalyzer"
},
"offerId": {
"type": "keyword",
"store": true
},
"priority": {
"type": "short",
"store": true
},
"serviceItem": {
"type": "nested",
"properties": {
"active": {
"type": "keyword",
"store": true
},
"akce": {
"type": "keyword",
"store": true
},
"basicServiceAttribut": {
"type": "keyword",
"store": true
},
"crossId": {
"type": "keyword",
"store": true
}
}
}
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}
and when i do this search :
{
"query" : {
"bool" : {
"must" : {
"term" : {
"primaryKey" : 38823
}
}
}
},
"stored_fields" : [
"priority",
"serviceItem.tariffSpaceAttribut"
]
}
I gen only priority store field :
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "spm_1.1",
"_type": "order",
"_id": "38823",
"_score": 1,
"fields": {
"priority": [
3
]
}
}
]
}
Can you give me any advice?