AnsweredAssumed Answered

Lucene search working on Node Browser but not from scheduled task

Question asked by cyruspy on Feb 27, 2013
Latest reply on Mar 16, 2013 by cyruspy
Hi!, I'm trying to run a search from a scheduled. Execution of the following query works from Node Browser:


+PATH:"/app:company_home/st:sites/*/cm:calendar//*" AND +@ia\:fromDate:[NOW TO MAX]


This is part of the scheduled task definition:


        <property name="queryLanguage">
            <value>lucene</value>
        </property>
        <property name="stores">
            <list>
                <value>workspace://SpacesStore</value>
            </list>
        </property>
        <property name="queryTemplate">
            <!–<value>+@ia\:fromDate:\$\{luceneDateRange(now, \"P10D\")\} AND +PATH:"/app:company_home/st:sites/cm:prova/cm:calendar//*"</value>–>
         <value>+PATH:"/app:company_home/st:sites//*/cm:calendar//*" AND +@ia\:fromDate:[NOW TO MAX]</value>

        </property>



From de debug logs all I can see is:


03:12:00,004 DEBUG [httpclient.wire.content] >> "{"textAttributes":[],"allAttributes":[],"templates":[],"authorities":["GROUP_EVERYONE","ROLE_AUTHENTICATED","root"],"tenants":[""],"query":"+PATH:\"/app:company_home/st:sites//*/cm:calendar//*\" AND +@ia\\:fromDate:[NOW TO MAX]","locales":["en_US"],"defaultNamespace":"http://www.alfresco.org/model/content/1.0','defaultFTSFieldOperator':'OR','defaultFTSOperator':'OR"}"
03:12:00,004 DEBUG [org.apache.commons.httpclient.methods.EntityEnclosingMethod] Request body sent
03:12:00,016 DEBUG [httpclient.wire.header] << "HTTP/1.1 200 OK[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.header] << "HTTP/1.1 200 OK[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.header] << "Server: Apache-Coyote/1.1[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.header] << "Content-Type: text/plain;charset=UTF-8[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.header] << "Content-Length: 103[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.header] << "Date: Wed, 27 Feb 2013 06:12:00 GMT[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.header] << "[\r][\n]"
03:12:00,016 DEBUG [httpclient.wire.content] << "{"responseHeader":{"status":0,"QTime":10},"response":{"numFound":0,"start":0,"maxScore":0.0,"docs":[]}}"


Any ideas of what's going on?

Outcomes