private IndexData BuildDataToIndex(IProviderUpdateContext context, IIndexable version)
{
var instance = context.Index.Locator.GetInstance<ICorePipeline>();
version = CleanUpPipeline.Run(instance, new CleanUpArgs(version, context));
if (InboundIndexFilterPipeline.Run(instance, new InboundIndexFilterArgs(version)))
{
index.Locator.GetInstance<IEvent>().RaiseEvent("indexing:excludedfromindex", new object[2]
{
index.Name,
version.UniqueId
});
return null;
}
var indexData = GetIndexData(version, context);
if (!indexData.IsEmpty)
return indexData;
CrawlingLog.Log.Warn(string.Format("AzureIndexOperations : IndexVersion produced a NULL doc for version {0}. Skipping.", version.UniqueId), null);
return null;
}