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]> 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]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to