Hi there,
We are running into an issue where we are not able to use IndexBuilderExtender to add new fields to the index, we see code running using debug and actual entry added to IndexDocument, but then is not stored.
I have tried multiple approaches such as:
- Not create a field in UI
- Create a indexed and stored field in UI without source
Any thoughts?
public class IndexBuilderExtender : IndexBuilderExtenderBase<Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder>
{
public override void ExtendDocument(IndexDocument doc)
{
AddToDocument(doc, "IsDealerPortalProduct", true);
}
private static void AddToDocument(IndexDocument doc, string docFieldName, object value)
{
if (doc.ContainsKey(docFieldName))
{
doc[docFieldName] = value;
}
else
{
doc.Add(docFieldName, value);
}
}
}
BR Mario