AnsweredAssumed Answered

Lucene search returns nodes that do not exist

Question asked by agey on Jul 2, 2010
Hi all,

I had configured a Scheduled Action to transform Tiff files into PDF files. In the Scheduled Action configuration I set the folowing lucene query to search the nodes:

+PATH:"/app:company_home/cm:Clientes/*//*" +TYPE:"{incis.model}Recorte" +@\{http\://www.alfresco.org/model/content/1.0\}content.mimetype:image/tiff

And, in Action code I check if the node exist:


if (this.nodeService.exists(actionedUponNodeRef) == false)
{
   logger.info("node doesn't exist");
        // node doesn't exist - can't do anything
        return;
}

When the action run, log file register about 100 nodes that don´t exist. If I search using the lucene query in Admin console, it resturns this nodes that don´t exist, too. When I want see the details of one node of them it returns a message 'the node don´t exist'. Why lucene query returns nodes that don´t exist? What lucene query should I use?

Thanks a lot in advance

Outcomes