Hi Helen, @collation is an attribute of the <range> element.
On Jul 22, 2010, at 11:29 AM, helen chen wrote: > I'm learning marklogic search, I want to create a range constraint so I can > get the facet. The problem is: the element range index is created using the > collation "http://marklogic.com/collation/en/MO", not the default collation > in search:search. > > so when I create constraint like the following: > <constraint name="codencount"> > <range type="xs:string" facet="true"> > <facet-option>limit=10</facet-option> > <element ns="metasearch" name="meta-article-coden"/> > </range> > </constraint> > > there is no place for me to specify the collation, and I got error > Description: XDMP-ELEMRIDXNOTFOUND: cts:element-values(fn:QName("metasearch", > "meta-article-coden"), (), ("type=string", "limit=10", "concurrent"), > cts:word-query("perovskite-type", ("case-insensitive","lang=en"), 1), > xs:double("1"), ()) -- No string element range index for > fn:QName("metasearch", "meta-article-coden") http://marklogic.com/collation/ > > > I looked at the search:search API, it didn't list anything for range > constraint to specify the collation. > > Does anyone know how I can do it? > > Thanks, Helen > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
