Is it possible to update an index with different IndexSettings than used during the creation?

Is it possible to update an index with different IndexSettings than used during the creation?

var indexSettings = new IndexSettings { DocumentFilter = filter1 };
using var index = new Index(m_IndexDataPath, indexSettings, false);
index.Add(...)

// Now, we terminate our application and afterwards, we execute only this (have a look at filter1 and filter2), but we work on the previously created index folder "m_IndexDataPath":

var indexSettings = new IndexSettings { DocumentFilter = filter2 };
using var index = new Index(m_IndexDataPath, indexSettings, false);
index.Update(new UpdateOptions { UseRawTextExtraction = false }))

During the update, I want to exclude some files that were not excluded during the creation. Is this possible?

I tried out the code above, but it seems that the first part of the code writes those settings on disk and therefore, passing other settings the 2nd time does not have any effect…

1 Like

@jamsharp

We’ve successfully reproduced the issue on our end and are now investigating the possibility of implementing this feature. Your investigation has been logged under ticket ID SEARCHNET-3297. We’ll keep you informed of any updates.