Hi,

it was a long and hard way, but my search is running now. Thank you
Daniel for your good Wiki entry for the DASL search. For me, also this
site was very helpful (especially for syntax):

http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html

One (small) problem is still left, perhaps anyone can help me: my search
is case-sensitive. Is this a Lucene analyzer issue or a am i using the wrong syntax?

my search request:

"<D:searchrequest xmlns:D =\"DAV:\" " +
        " xmlns:S=\"http://jakarta.apache.org/slide/\"; " +
        " xmlns:p=\"http://www.openmedium.de/media\""; +
        ">" +
    "<D:basicsearch>" +
        "<D:select>" +
            "<D:prop>" +
                "<D:displayname/>" +
            "</D:prop>" +
        "</D:select>" +
        "<D:from>" +
            "<D:scope>" +
                "<D:href>" + Constants.FILES_HREF + "</D:href>" +
                "<D:depth>Infinity</D:depth>" +
            "</D:scope>" +
        "</D:from>" +
        "<D:where>" +
            "<D:or>" +
                // content index search
                "<D:contains>"+ searchForm.getString("q") + "</D:contains>" +
                // works for displayname, but case-sensitive

"<S:propcontains><D:prop><D:displayname/></D:prop><D:literal>"+ searchForm.getString("q") + "</D:literal></S:propcontains>" +
                
                // own properties from domain xml
"<S:property-contains><D:prop><p:keywords /></D:prop><D:literal>" + searchForm.getString("q") + "</D:literal></S:property-contains>" + "<S:property-contains><D:prop><p:author /></D:prop><D:literal>" + searchForm.getString("q") + "</D:literal></S:property-contains>" + "<S:property-contains><D:prop><p:description /></D:prop><D:literal>" + searchForm.getString("q") + "</D:literal></S:property-contains>" +
                "</D:or>" +
                
        "</D:where>" +
    "</D:basicsearch>" +
"</D:searchrequest>";

Thanks, Bart

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to