Hi ,

Can someone help me in converting this JAVA API Options to xml options, I
am stuck with the 'frequency-order' which is there below in Java formation
but couldn't get how to put this 'frequency-order' in xml query options
syntax:

JAVA :

QueryOptionsHandle options = new QueryOptionsHandle().withValues(
            qob.values("country",
                    qob.range(
                        qob.elementRangeIndex(new QName("country"),

qob.stringRangeType(QueryOptions.DEFAULT_COLLATION))),
                    "frequency-order"));
optionsMgr.writeOptions(optionsName, options);

QueryManager queryMgr = client.newQueryManager();

ValuesDefinition valuesDef = queryMgr.newValuesDefinition("country",
optionsName);

 valuesDef.setFrequency(Frequency.ITEM);


XML:

<search:options xmlns="http://marklogic.com/appservices/search";>
  <search:values name="country">

    <search:range type="xs:string"
      collation="http://marklogic.com/collation/";>
      <search:element ns="" name="country"/>
    </search:range>
  <search:values/>
</search:options>

Above where to put frequency-order element? As I want to get the same

result using the above xml to that of Java formation

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

Reply via email to