Does anyone have the built-in Publish At functionality working with custom indexes (Umbraco v.4.5.2) ?
I've noticed the following scenarios:
When the custom index is configured to only index published nodes, then the indexing events are never called ! (The internal Lucene index is updated, but none of the custom ones). The timed publish seems to update the internal XML cache (as the page can be viewed), but the umbraco.config xml file itself isn't updated (this also seems to cause problems accessing the data via the nodeFactory).
When the custom index is configured to index unpublished nodes, then on save the custom indexes are updated, although when the timed publish event is executed, the indexing event that attempts to read data (either by the nodeFactory or via the Document API) is unable to fetch property values - hence indexing data that was present on the initial save is then wiped.
Incidently, any manual save & publish of the node in question, or rebuild of the indexes causes the custom indexes to be updated correctly.
Anyone have any suggestions for how best to maintain custom indexes when using the scheduled Publish At functionality ?
This depends on how Umbrac dispatches events during the scheduled process. Potentially this doesn't run in a web context which could cause issues, but TBH I'm not really sure. would have to check the Umbraco source.
Publish At and Custom Indexes
Hi,
Does anyone have the built-in Publish At functionality working with custom indexes (Umbraco v.4.5.2) ?
I've noticed the following scenarios:
When the custom index is configured to only index published nodes, then the indexing events are never called ! (The internal Lucene index is updated, but none of the custom ones). The timed publish seems to update the internal XML cache (as the page can be viewed), but the umbraco.config xml file itself isn't updated (this also seems to cause problems accessing the data via the nodeFactory).
When the custom index is configured to index unpublished nodes, then on save the custom indexes are updated, although when the timed publish event is executed, the indexing event that attempts to read data (either by the nodeFactory or via the Document API) is unable to fetch property values - hence indexing data that was present on the initial save is then wiped.
Incidently, any manual save & publish of the node in question, or rebuild of the indexes causes the custom indexes to be updated correctly.
Anyone have any suggestions for how best to maintain custom indexes when using the scheduled Publish At functionality ?
Many thanks,
Hendy
Have upgraded to Umbraco 4.7.0, but still experiencing the same issues.
This depends on how Umbrac dispatches events during the scheduled process. Potentially this doesn't run in a web context which could cause issues, but TBH I'm not really sure. would have to check the Umbraco source.
Thanks Shannon, will investigate further into the Umbraco source...
is working on a reply...