Hiding fields in Elasticsearch
Mapping configuration
by Flexmonster Pivot Table
HTML
<script src="https://cdn.flexmonster.com/flexmonster.js"></script>
<div id="pivot-container"></div>
CSS
@import url(https://cdn.flexmonster.com/assets/jsfiddle-styles.css);
JavaScript
let pivot = new Flexmonster({
container: "#pivot-container",
componentFolder: "https://cdn.flexmonster.com/",
width: "100%",
height: 600,
toolbar: true,
report: {
dataSource: {
type: "elasticsearch",
/* the host for connection */
node: "https://olap.flexmonster.com:9200",
/* the name of Elasticsearch index to connect */
index: "fm-product-sales",
mapping: {
"@timestamp": {
visible: false
},
"@version": {
visible: false
},
"host": {
visible: false
},
"message": {
visible: false
},
"path": {
visible: false
}
}
}
}
});