Hi David,
Scheduled tasks run in the task server, and the task server has a stripped-down
environment. So best practice is to specify the collation with your
cts:element-values call. For example:
cts:element-values(xs:QName("my-element"), (),
"collation=http://marklogic.com/collation/")
Similarly, you should also put an xquery declaration for the first line of any
code running as a scheduled task to be sure it is running the dialect you want.
Hope that helps.
-Danny
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of David Sewell
Sent: Friday, February 12, 2010 1:52 PM
To: General XQZone Discussion
Subject: [MarkLogic Dev General] MarkLogic task schedule and database indexes??
I'm trying to get a scheduled task to run properly against data in one
of my databases, call it "DB". The query uses a call to
cts:element-values() on a couple of elements for which I have a range
element index defined in the DB database. It runs fine via an HTTP or
XDBC server using the DB database. (This is ML 4.1-4)
The scheduled task is set up to run the query against DB, but when it
runs I get an error in the logfile, XDMP-ELEMRIDXNOTFOUND ("no element
range index").
It seems to me that if a task is running against a database, it should
use all of the various things defined for that database. Am I
missing something here?
--
David Sewell, Editorial and Technical Manager
ROTUNDA, The University of Virginia Press
PO Box 801079, Charlottesville, VA 22904-4318 USA
Courier: 310 Old Ivy Way, Suite 302, Charlottesville VA 22903
Email: [email protected] Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general