Hello Nick, Most likely you configured the h:caption to be text indexed (indexer.xml). This means, you can not properly sort on it. If you index it as String (this is default how properties are indexed), sorting will be correct. If you are searching in captions like with S:property-contains, you have to replace this with S:propsearch, see [1]
If you are interested in the reasoning behind text/string indexing let me know and I'll explain a litte more, Regards Ard [1] http://wiki.hippo.nl/display/CMS/06.+Using+DASL+Queries#06.UsingDASLQuer ies-%3CS%3A(not)propertycontains%2F%3E > > I am executing a DASL query [1] against the repository 1.2.15 > to select a number of results ordered by their caption. I get > a number of results [2] which are wrongly ordered. I have > tried to throw away the index at the repository and rebuild > it, but that didn't help. What can cause this behavior? > > With regards, > > Nick Stolwijk > ~Java Developer~ > > Iprofs BV. > Claus Sluterweg 125 > 2012 WS Haarlem > www.iprofs.nl > > [1] > <?xml version="1.0" encoding="utf-8" ?> > <!-- productlist_dasl.ftl --> > <d:searchrequest xmlns:s="http://jakarta.apache.org/slide/" > xmlns:h="http://hippo.nl/cms/1.0" xmlns:d="DAV:"> > <d:basicsearch> > <d:select> > <d:prop> > <s:nrHits/> > <d:displayname/> > <h:caption /> > > </d:prop> > </d:select> > <d:from> > <d:scope> > <d:href>content</d:href> > <d:depth>Infinity</d:depth> > </d:scope> > </d:from> > > <limit xmlns="DAV:"> > <nresults>12</nresults> > <offset > xmlns="http://jakarta.apache.org/slide/">0</offset> > </limit> > > <d:orderby> > <d:order> > <d:prop> > <h:caption/> > </d:prop> > <d:ascending /> > </d:order> > </d:orderby> > </d:basicsearch> > </d:searchrequest> > > > [2] > > <?xml version="1.0" encoding="UTF-8"?> > <D:multistatus xmlns:D="DAV:"> > <D:response> > > <D:href>/default/files/default.www/content/aaaa-buiten.xml</D:href> > <D:propstat> > <D:prop> > <S:nrHits > xmlns:S="http://jakarta.apache.org/slide/">4</S:nrHits> > <D:displayname>aaaa-buiten.xml</D:displayname> > <caption xmlns="http://hippo.nl/cms/1.0">AAAA > - buiten</caption> > </D:prop> > <D:status>HTTP/1.1 200 OK</D:status> > </D:propstat> > </D:response> > <D:response> > > <D:href>/default/files/default.www/content/dominicus.xml</D:href> > <D:propstat> > <D:prop> > <S:nrHits > xmlns:S="http://jakarta.apache.org/slide/">4</S:nrHits> > > <D:displayname>slovenie-istrie-rg-dominicus.xml</D:displayname> > <caption > xmlns="http://hippo.nl/cms/1.0">DOMINICUS</caption> > </D:prop> > <D:status>HTTP/1.1 200 OK</D:status> > </D:propstat> > </D:response> > <D:response> > > <D:href>/default/files/default.www/content/appdata/webwinkel/c > ategorien/reis-en-cadeauartikelen/reisartikelen/aaaa-leden.xml > </D:href> > <D:propstat> > <D:prop> > <S:nrHits > xmlns:S="http://jakarta.apache.org/slide/">4</S:nrHits> > > <D:displayname>anwb-werelstekker-voordeel-voor-leden.xml</D:di > splayname> > <caption xmlns="http://hippo.nl/cms/1.0">AAAA > leden</caption> > </D:prop> > <D:status>HTTP/1.1 200 OK</D:status> > </D:propstat> > </D:response> > <D:response> > > <D:href>/default/files/default.www/content/zonnebril.xml</D:href> > <D:propstat> > <D:prop> > <S:nrHits > xmlns:S="http://jakarta.apache.org/slide/">4</S:nrHits> > <D:displayname>zonnebril-202.xml</D:displayname> > <caption > xmlns="http://hippo.nl/cms/1.0">ZONNEBRIL 202</caption> > </D:prop> > <D:status>HTTP/1.1 200 OK</D:status> > </D:propstat> > </D:response> > </D:multistatus> > ******************************************** > 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 > > ******************************************** 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
