Posted on 11/05/2016 12:08:06
Not currently. I have a backlog item that we should give an alternative for this scenario - there was another thread on this matter some weeks ago.
You can run a SQL during/after the import that will copy the data to another column and make a conversion when doing that.
Alternatively you can create an extender to the indexer that will manipulate the data when going into the index:
namespace Dynamicweb.Examples.CSharp
{
class IndexBuilderExtenderExample : Indexing.IndexBuilderExtenderBase<Dynamicweb.Ecommerce.Indexing.ProductIndexBuilder>
{
public override void ExtendDocument(IndexDocument document)
{
if (document.ContainsKey("ID"))
{
string productid = (string)document["ID"];
}
document.Add("CustomField", DateTime.Now);
}
}
}