You could be running into the same problem reported here :
http://stackoverflow.com/questions/18998969/how-to-sort-an-path-range-indexed-element


Regards,
Danny



On Wed, Sep 3, 2014 at 9:37 AM, Blessing N <[email protected]> wrote:

> Hi,
>
> I'm using search:search  in my application where I have documents
> stored in following structure
>
> <record>
> <title> Some Title  </title>
> <sectionList>
> <section>Section1</section>
> <section>Section2</section>
> </sectionList>
> </record>
>
> There is a path range index created for /record/sectionList/section[1]
> and a constraint added in search:search options.
>
> <constraint name="SectionFilt">
>                         <range type="xs:string" facet="false">
>
> <path-index>/record/sectionList/section[1]</path-index>
>                   {$webm:QUERY-OPTIONS}
>             </range>
>  </constraint>
>
> When I perform a Path-Range-Query using search:search with Title
> element sort the sorting is not working whereas when i remove the path
> range query from the constraint the sort works.
>
> query=(SectionFilt:"about") sort:custom_sort
>
> The same code in ML 6 works perfectly. Is there a change in ML7 in the
> way it handles sorting for path range queries?
>
> Thanks,
> Blessing
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to