Re: [MarkLogic Dev General] Error trying to create query options in xml

2015-02-24 Thread Maisnam Ns
Hi Sam, I have a little problem which I am unable to fix. The above code works for Standalone java application. Now , I am trying to put this code inside a J2EE spring based application inside a method below public ValuesHandle getTopTen(){ // construct the query options String o

Re: [MarkLogic Dev General] Error trying to create query options in xml

2015-02-23 Thread Maisnam Ns
Hi Sam, it's working . Big thanks again On Tue, Feb 24, 2015 at 12:18 AM, Sam Mefford wrote: > Ah well, my last reply was redundant as you seem to have found the > answer yourself. Good on you! > > Here's an update with a working sample. Notice I changed > search:constraint to search:values.

Re: [MarkLogic Dev General] Error trying to create query options in xml

2015-02-23 Thread Maisnam Ns
Hi Sam, thanks so much for your code example, the above code is what I am looking for. On Tue, Feb 24, 2015 at 12:18 AM, Sam Mefford wrote: > Ah well, my last reply was redundant as you seem to have found the > answer yourself. Good on you! > > Here's an update with a working sample. Notice I

Re: [MarkLogic Dev General] Error trying to create query options in xml

2015-02-23 Thread Sam Mefford
Ah well, my last reply was redundant as you seem to have found the answer yourself. Good on you! Here's an update with a working sample. Notice I changed search:constraint to search:values. And notice I pass the options name to the newValuesDefintion method. import com.marklogic.client.Dat

[MarkLogic Dev General] Error trying to create query options in xml

2015-02-22 Thread Maisnam Ns
Hi, Can someone help me on creating the query options , the first one using 1. QueryOptionsBuilder in Java API works but with xml it is not working, the result I am getting is 1. US 100 2. JP 49 3. ES 23 Basically , I am getting the country and the counts . QueryOptionsBuilder qob = new Qu