Hello,

 

We are trying to make a DASL query to get the data sorted by user defined
date field.

The sorting does not work.

 

When I sort using the DAV properties like creationDate, modificationDate,
the sorting works perfectly fine.

 

Date stored in the metadata file

<property name="date" namespace="http://hippo.nl/cms/1.0"; value="20081014"
type="date" protected="false">

 

DASL query

<d:searchrequest xmlns:d="DAV:" xmlns:h="http://hippo.nl/cms/1.0";

    xmlns:S="http://jakarta.apache.org/slide/";>

    <d:basicsearch>

        <d:select>

            <d:prop>

                <h:type/>

                <h:caption/>

                <h:date/>

                <h:index/>

                <h:date/>

                <h:site/>

                <h:tag/>

            </d:prop>

        </d:select>

        <d:from>

            <d:scope>

                <d:href/>

                <d:depth>infinity</d:depth>

            </d:scope>

        </d:from>

        <d:where>

            <d:eq>

                <d:prop>

                    <h:type/>

                </d:prop>

                <d:literal>news</d:literal>

            </d:eq>

        </d:where>

        <d:orderby>

            <d:order>

                <d:prop>

                    <h:date/>

                </d:prop>

                <d:descending/>

            </d:order>

        </d:orderby>

    </d:basicsearch>

</d:searchrequest>

 

dasl-indexer.xml file

<property namespace="http://hippo.nl/cms/1.0"; name="date" type="date" />

 

Let me know if you need more details.

A quick reply is really appreciated.

 

 

Regards,

Arun Wagle

********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to