Correction : How do I tell the ML Search API to allow *sorting* by ... On Thu, Dec 11, 2014 at 1:52 PM, Danny Sinang <[email protected]> wrote:
> Our documents have the following sample elements : > > <article-id pub-id-type="doi">10.1056/NABCp1401135</article-id> > <article-id pub-id-type="publisher-id">NJ201405083701902 > </article-id> > > How do I tell the ML Search API to allow searching by the values of the > second element ( where pub-id-type="publisher-id" )? > > I tried the option below, but it doesn't seem to work : > > <operator *name*=*"sort"*> > <state *name*=*"relevance"*> > <sort-order> > <score/> > </sort-order> > </state> > <state *name*=*"article-number"*> > <sort-order *direction*=*"ascending"* *type*=*"xs:string"* > *collation*=*"http://marklogic.com/collation/ > <http://marklogic.com/collation/>"*> > <element *ns*=*""* *name*=*"article-id"*/> > <attribute *ns*=*""* *name*=*"pub-id-type"*/> > </sort-order> > <sort-order> > <score/> > </sort-order> > </state> > </operator> > > > Is there a way to express in the sort-order option that I want to sort by > article=id[@pub-id-type="publisher-id"] ? > > > Regards, > > Danny > > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
