For some reason I did not get the reply from you directly only via the digest...
Thanks for your reply Ron. It returns no errors, no documents. The odd thing is that it works fine for all NON geo queries. If I use a geo query it works fine in CQ but returns no documents via XCC. Regards, Tom Message: 4 Date: Wed, 7 Mar 2012 16:17:31 +0000 From: Ron Hitchens <[email protected]> Subject: Re: [MarkLogic Dev General] XCC AdHocQuery versus CQ Queries To: MarkLogic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=us-ascii A given query should work the same. But there are environmental differences that can come into play. You will always be running an XCC query and a CQ query on different appservers (the former XDBC/XCC and that latter HTTP). Make sure the database settings for each are the same. CQ will let you choose a different database to run a query against. That can also be done with XCC, but it's usually defaulted to the appserver setting. If your query is importing any library modules, having different module roots for the two appservers can cause unresolved import errors on one or the other. If your query is not throwing an error, but coming up with no results, make sure it's running in the correct database and that namespaces are not tripping you up. Or that you're not depending on XPath contexts that may not be the same across environments. On Mar 7, 2012, at 4:06 PM, Tom Hubschman wrote: > Hi All, > > Is there any difference between executing an query in CQ and in a XCC java (version 4.2)? My geoquery works in CQ but not XCC. > > Specifically using this XCC method: http://developer.marklogic.com/pubs/4.2/javadoc/com/marklogic/xcc/Session.html#newAdhocQuery(java.lang.String) > > Thanks everyone! > > Tom > > -- > Thomas Hubschman > Director, Engineering > [email protected] > Mobile: (415) 612-0359 > www.warriorgateway.org > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general -- Thomas Hubschman Director, Engineering [email protected] Mobile: (415) 612-0359 www.warriorgateway.org
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
