Some of our elasticsearch mappings look something like this:
"creator":{
"properties":{
"id":{
"type":"keyword"
},
"name":{
"type":"keyword"
}
}
},
Is it possible to only list the "name" property in this example and show it as a top level item in the "Fields" modal? I know how to hide the "id" property, but "name" is still nested under "creator", even though it's the only item.
We are using the beta elasticsearch data source.
Hello Luke,
Thank you for the question.
I have created a similar index on my local server, and it seems working as expected.
If id
field is hidden and name
is the only visible in the creator
group, name
appears at the top level.
If both are visible: https://take.ms/viEHh
If id
is hidden: https://take.ms/cmMM4
Flexmonster configuration:
"dataSource": {
...
"mapping": {
"creator.id": { "visible": false }
}
}
Could you please share more details about your case?
Regards,
Ian
Looks like I was configuring things wrong. Everything is working great! Thank you, sorry for the false alarm.