Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
That should work (using the EPiServer.Find-namespace). What is the compilation error? Is there an Id property on Document?
Regards,
Henrik
Hi,
Having some issue with deleting items from the index. I'm attaching to the ImageVault DeleteFileEvent and was hoping to do a delete of the item from the index. I'm able to run the code for deleting directly twards the id of the document. But as I would rather let Find create its own id (don't know if the fileId in IV is unique) so was hoping to be able to use the method with matching a critera but trying that I can't even compile the code.. Am I missing a using for a helper or?
client.Delete<Document>(e.ID); <--- this works
client.Delete<Document>(x => x.Id.Match(e.ID)); <--- this doesn't complie