Hi all,

I was looking if I had any chance to order a result based on the last-modified 
property.
The point is that it doesn't seem to be a possible use case currently, but I 
just figure out a facet generation based on the same property from the 
search:search documentation.

> <options xmlns="http://marklogic.com/appservices/search";>
> <fragment-scope>documents</fragment-scope>
>   <constraint name="last-modified">
>     <range type="xs:dateTime">
>       <element ns="http://marklogic.com/xdmp/property";
>                name="last-modified"/>
>       <fragment-scope>properties</fragment-scope>
>     </range>
>   </constraint>
>   <debug>true</debug>
> </options>

Using fragment-scope within a range constraint enable facet generation on 
property. Nice (>= 5.0) new feature.
So I'm just wondering why such a feature (fragment scope) can't at all be use 
with sort-order as it :

> <search:sort-order type="xs:dateTime" direction="descending">
>     <search:element ns="http://marklogic.com/xdmp/property"; 
> name="last-modified"/>
>     <search:fragment-scope>properties</search:fragment-scope>
>   </search:sort-order>

I guess it could be a nice feature too, to be able to sort on properties that 
way.

What do you think about it ?
Stéphane
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to