Full text search API, how to check if a document folder is already indexed using .NET

Hi,
i need a code sample for checking,if already index is created for particular folder documents,then i need to update the index in c#.net.

if index not available , need to create a new.

this condition aspects i need some code samples…already i referred articles and github codes.not helps me

1 Like

@bharathiGK

If we understand it properly, you are looking for a feature to find out if indexing is created for a particular documents folder (prior to index creation).
If so, we are investigating this scenario. Your investigation ticket ID is SEARCHNET-2285. As there’s any update, you’ll be notified.

Okay.Thank you

@bharathiGK

One possible way to achieve the above scenario is, from an index, you can get a list of indexed paths (folders or files):

string[] indexedPaths = index.GetIndexedPaths();

And then you can compare the path of the folder (the new one, yet to be indexed) to the folder with the indexed paths and decide either to update index or add new folder to the index.