I'm now looking at how to periodically add new items to the index without having to do a full index re-build. Is there any documentation available for this?
I did have examples for this but I could not find it right now. But basiclly theres methods on the IndexProviderCollection to reindex and delete items.
I'm not 100% sure but it might be that you just use "ReIndexNode()" to add a new item... I'm sorry but I can remember on top of my head....
Hope this helps a little bit:
private void UpdateIndex(MyObject myObject) {
var examineNode = myObject
.ToSimpleDataSet() // you need to implement this
.RowData
.ToExamineXml(myObject.Id, "myObject");
ExamineManager
.Instance
.IndexProviderCollection["MyIndexer"]
.ReIndexNode(examineNode, "myObject");
}
Periodically add new items to a custom data set Examine Index
Following the information in this great article, https://24days.in/umbraco-cms/2016/custom-data-and-examine-searching/, I've managed to setup a custom data set for an Examine Index.
I'm now looking at how to periodically add new items to the index without having to do a full index re-build. Is there any documentation available for this?
Hi!
I did have examples for this but I could not find it right now. But basiclly theres methods on the IndexProviderCollection to reindex and delete items.
I'm not 100% sure but it might be that you just use "ReIndexNode()" to add a new item... I'm sorry but I can remember on top of my head....
Hope this helps a little bit:
And to delete a row
Thank you Markus.
is working on a reply...