Here I create the a Document also Use PublishWithResult (I tried just Plublish too) and in the Content tree the Document is show correctly as published but it doesn’t appear in the Examine index.
When I do the same in the Backend it works. It seem the when I create a Document in the Backend oft umbraco there are some events triggered that the API-methods doesn’t trigger.
Examine doesnt index documents created by the API
Hello Umbracians,
I’ve got a problem that Examine doesn’t index documents created by the API.
Code-example:
DocumentType myPage = DocumentType.GetByAlias("Content");
Document doc = Document.MakeNew(
"Content",
myPage,
User.GetUser(0),
id
);
doc.PublishWithResult(User.GetUser(0));
doc.XmlGenerate(new XmlDocument());
library.UpdateDocumentCache(doc.Id);
Here I create the a Document also Use PublishWithResult (I tried just Plublish too) and in the Content tree the Document is show correctly as published but it doesn’t appear in the Examine index.
When I do the same in the Backend it works. It seem the when I create a Document in the Backend oft umbraco there are some events triggered that the API-methods doesn’t trigger.
Can anybody help?
Thanks
FFZ
is working on a reply...