Geert, I dont see anything here http://docs.marklogic.com/javadoc/client/index.html
For creating or managing indexes. Is this supported in the REST or Java API's ? ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation [email protected] Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: [email protected] [mailto:[email protected]] On Behalf Of Geert Josten Sent: Tuesday, August 13, 2013 2:07 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] creating indexes programmatically Hi Praveen, Or if you are still relatively early in your development phase, it might be work looking into the new Client API. That provides a REST API for doing most common things with MarkLogic, like getting/putting documents, searching them, but also provides means to manage indexes and such. That Client API comes with a Java library, so should integrating it with your code should be too difficult.. http://docs.marklogic.com/guide/java http://docs.marklogic.com/javadoc/client/index.html If you are really looking into automatically deploying code into MarkLogic, there are many other alternatives. Roxy provides a quite advanced framework for both app development, and its deployment. http://developer.marklogic.com/code/roxy Kind regards, Geert Van: [email protected]<mailto:[email protected]> [mailto:[email protected]<mailto:[email protected]>] Namens David Lee Verzonden: dinsdag 13 augustus 2013 0:52 Aan: MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] creating indexes programmatically Once you know the XQuery to execute, the XCC API is fairly easy to use. Look for Request.newAdHocQuery() You can see how xmlsh does this here: http://sourceforge.net/p/xmlsh/code/846/tree/extensions/marklogic/src/org/xmlsh/marklogic/query.java There's some helper code involved you wont need ... the basics is just a few lines. If you are not already running a Java program it might be easier to just use xmlsh and the marklogic extension to do this. http://www.xmlsh.org/ModuleMarkLogic The above listing is from the "query" command http://www.xmlsh.org/MarkLogicQuery If you are already running a java program the XCC API is easy to integrate. Another option, which is easier to explain but takes some more setup, is to create a App server and put your xquery in the modules database or folder then expose your query via HTTP. ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation [email protected]<mailto:[email protected]> Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of [email protected]<mailto:[email protected]> Sent: Monday, August 12, 2013 5:43 PM To: [email protected]<mailto:[email protected]> Subject: [MarkLogic Dev General] creating indexes progammatically HI all, Can someone suggest me best ways to automate the INDEXes creation on marklogic database? I am trying to make this as a part of deployment process. I am having hard time understanding JAVA XCC api to create indexes programmatically? Or is there any marklogic java api which can take straight forward xquery and execute it on the database. Your ideas are much appreciated. Thanks Praveen
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
