We want to encourage participation as much as possible.  We've all been there: 
done the tutorials, read over a hundred-pages of guide, thumbed through all the 
javadocs, and tried exhaustive google searches and still can't figure something 
out.  We encourage everyone in that boat to use this forum rather than stay 
stuck.

The good news about this question from Ns is the follow-up post sharing the 
answer when it was found.  So now when someone else faces the same question and 
they use google, the answer will be readily available.

With that said, good pointer to the NoSQL for Dummies book.


Sam Mefford
Senior Engineer
MarkLogic Corporation
[email protected]<mailto:[email protected]>
Cell: +1 801 706 9731
www.marklogic.com<http://www.marklogic.com>

This e-mail and any accompanying attachments are confidential. The information 
is intended
solely for the use of the individual to whom it is addressed. Any review, 
disclosure, copying,
distribution, or use of this e-mail communication by others is strictly 
prohibited. If you
are not the intended recipient, please notify us immediately by returning this 
message to
the sender and delete all copies. Thank you for your cooperation.


On 2/24/2015 11:48 AM, Peter Gomez wrote:
Get a book called NoSQL for Dummies and some MarkLogic documentation before 
clogging this forum man

________________________________
Date: Wed, 25 Feb 2015 00:14:20 +0530
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
Subject: Re: [MarkLogic Dev General] Getting null directory using JAVA API

After getting the uris from cts:uris() , I am setting it like the below and now 
it is working

querydef.setDirectory("/contentD:/marklogic/data/TopSongs/");

On Tue, Feb 24, 2015 at 11:56 PM, Maisnam Ns 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I uploaded roughly 1100 files from my local directory1(d:\marklogic\d1) and 
directory2 (d:\marklogic\d2)  to marklogic database 'TestDB' .

My requirement is to search from either from d1 or d2 based on checking a 
checkbox. If d1 is checked I need to search from d1 and vice versa.

But as given in the marklogic API Java docs , I am trying to get the directory 
path by the below code but it is giving null. How can I set and unset the 
directories to search for and why querydef.getDirectory() is null.

    QueryManager queryMgr = conn.getClient().newQueryManager();

        // create a search definition
        StringQueryDefinition querydef = queryMgr.newStringDefinition(options);

        querydef.setCriteria(arg);

        System.out.println("directory>>>>>>>>>>>>>>>>>>"+ 
querydef.getDirectory());

Thanks



_______________________________________________ General mailing list 
[email protected]<mailto:[email protected]> 
http://developer.marklogic.com/mailman/listinfo/general



_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to