Developer forum

Forum » Development » Custom index extender for custom index builder

Custom index extender for custom index builder

Tobias Belling
Reply

Hi,

We have a dynamic function, adding data to different repositories through the following code.

var index = indexService.LoadIndex(Dynamicweb.Indexing.Repositories.RepositoryService.BaseFolder + "\\" + repository + "\\" + indexName);
indexWriter = index.GetInstance().CreateWriter();
indexWriter.Open(true);
IndexDocument doc = new IndexDocument();
foreach (var fieldItem in fieldDictionary)
{
doc.Add(fieldItem.Key, fieldItem.Value);
}
indexWriter.AddOrUpdateDocument(doc, "Id", fieldDictionary["Id"]);
indexWriter.Close();

 

We want to manipulate this data, but still keep this function dynamic. For this we are trying to use an indexextender.

How can we attach an indexextender to manipulate data added through this method?

Our custom index extender only gets hit when we build the index through the administration.

Another solution would also be appreciated.

 

Kind regards

Tobias


Replies

 
Nicolai Pedersen
Reply

Sorry, I do not understand the question.... Can you ellaborate on your structure - where is this dynamic function being called, what should happen?

 

You must be logged in to post in the forum