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

Reply via email to