Hi! Can you show us your namespace configuration, most importantly the namespace/definition/store/contentindexer and propertyindexer elements from Domain.xml?
For contentindexer, you are able to supply your own analyzer, so you could use org.apache.lucene.analysis.standard.StandardAnalyzer or org.apache.lucene.analysis.SimpleAnalyzer. Those will convert everything to lowercase as well. You can do the same for each text properties for the propertyindexer as described on the wiki page DaslConfiguration. Unfortunately, all other string properties will be indexed case-sensitively... You'd have to change a line in src/stores/org/apache/slide/index/lucene/Index.java: Line 291: value.toString().toLowerCase())); That should do it. max > -----Original Message----- > From: Bart Frackiewicz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 07, 2006 23:13 > To: Slide Users Mailing List > Subject: Search again: case-sensitive > > > 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-l > atest.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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
