smartBox.semanticSearchSettings.historyBoolean|Object
Sets the settings for the history queries in Semantic Search mode. Overrides the global smartBox.history setting for this mode.
Example - configure semantic search history
<div id="grid"></div>
<script>
$("#grid").kendoGrid({
columns: [
{ field: "ProductName" },
{ field: "UnitPrice" }
],
dataSource: {
data: [
{ ProductName: "Tea", UnitPrice: 10 },
{ ProductName: "Coffee", UnitPrice: 15 }
]
},
search: {
fields: [{ name: "ProductName", operator: "contains" }]
},
toolbar: ["smartBox"],
smartBox: {
activeMode: "SemanticSearch",
semanticSearchSettings: {
enabled: true,
history: {
size: 8
}
}
}
});
</script>