The indexer did the trick. Thank you,
Wilson 2009/2/19 Ard Schrijvers <[email protected]> > Hello Wilson, > > You on the right way, only have to add to the indexer.xml this: > > <property namespace="http://hippo.nl/cms/1.0" name="taxonomy" type="text" > > analyzer="nl.hippo.slide.index.analysis.LowercaseCommaSeparatedAnalyzer"/> > > The type="text" makes sure you can use strict-property-contains for > this prop. Also see [1] > > If you want it to work for existing documents, make sure you delete > the index before restarting the repo, this will re-index all. > > Regards Ard > > [1] > http://wiki.hippo.nl/display/CMSSNDBX/06.+Using+DASL+Queries#06.UsingDASLQueries-%3CS%3A(not)strictpropertycontains%2F%3E(1.2.8andhigherONLY)<http://wiki.hippo.nl/display/CMSSNDBX/06.+Using+DASL+Queries#06.UsingDASLQueries-%3CS%3A%28not%29strictpropertycontains%2F%3E%281.2.8andhigherONLY%29> > > > On Thu, Feb 19, 2009 at 1:00 PM, Wilson de Paula Pedro Junior > <[email protected]> wrote: > > Hi, > > > > Can someone tell me what is wrong? > > > > I have this dasl query: > > > > <d:searchrequest xmlns:dav="DAV:" xmlns:d="DAV:" > > xmlns:s="http://jakarta.apache.org/slide/" > > xmlns:h="http://hippo.nl/cms/1.0"> > > <d:basicsearch> > > <d:select> > > <d:prop> > > <s:nrHits /> > > <h:publicatiedatum /> > > <h:taxonomie /> > > </d:prop> > > </d:select> > > <d:from> > > <d:scope> > > <d:href>content/nieuws</d:href> > > <d:depth>infinity</d:depth> > > </d:scope> > > </d:from> > > <d:where> > > <d:and> > > <d:not-is-collection /> > > <s:strict-property-contains> > > <d:prop> > > <h:taxonomie /> > > </d:prop> > > <d:literal>x/y/z</d:literal> > > </s:strict-property-contains> > > </d:and> > > </d:where> > > <d:orderby> > > <d:order> > > <d:prop> > > <h:publicatiedatum /> > > </d:prop> > > <d:descending /> > > </d:order> > > </d:orderby> > > <d:limit> > > <d:nresults>10</d:nresults> > > <s:offset>0</s:offset> > > </d:limit> > > </d:basicsearch> > > </d:searchrequest> > > > > > > I want to compare the given literal (x/y/z) to the property taxonomie. > This > > property can have comma-separeted strings. > > In extractors.xml I used: > > > > <extractor > > classname="nl.hippo.slide.extractor.HippoMultiValueXMLPropertyExtractor" > > uri="/files/default.preview/content/nieuws" content-type="text/xml"> > > <configuration> > > <instruction property="taxonomie" namespace=" > > http://hippo.nl/cms/1.0" xpath="/root/taxonomie/text()"/> > > </configuration> > > </extractor> > > > > I get an error trying to run this dasl. > > In webdav-search tool I get the following error message: > > > > > > <?xml version="1.0" encoding="UTF-8"?><D:multistatus xmlns:D="DAV:"> > > <D:response> > > <D:href>/default</D:href> > > <D:status>HTTP/1.1 400 Bad Request</D:status> > > <D:responsedescription>Factory: Uncomparable expression > > 'strict-property-contains' for property > 'taxonomie'.</D:responsedescription> > > </D:response> > > </D:multistatus> > > > > > > > > > > Thanks in advance! > > > > Wilson > > ******************************************** > > 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 > > ******************************************** 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
