jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Bracher <philipp.brac...@obinary.com>
Subject search: support of not like and case insensitive search
Date Mon, 01 Aug 2005 13:14:16 GMT
hi list,

i use jackrabbit in the cms project magnolia. Using the search facility  
I found two problems I was not able to solve:

1) search seams to be case sensitive (xpath and sql syntax)
using LIKE 'test' and LIKE 'Test' is not returning the same result. Is  
there a way to make the like function case insensitive?

2) xpath is not supporting predicate: [not(jcr:like(@title, '%test%'))]
Our user interface is providing the constraint: 'contains not'. Using  
the predicate above i get an 'Unsupported function: not' exception.

//*[not (jcr:like(@title, '%Test%'))] order by @name ascending
ERROR   
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/ 
dms].[jsp] ApplicationDispatcher.java(invoke:704) 01.08.2005 15:10:19   
Servlet.service() for servlet jsp threw exception
javax.jcr.query.InvalidQueryException: Unsupported function: not
	at  
org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.createFunction( 
XPathQueryBuilder.java:855)
	at  
org.apache.jackrabbit.core.query.xpath.XPathQueryBuilder.visit(XPathQuer 
yBuilder.java:440)

Is this a bug? or do I mess up the syntax?


We use the following configuration:

         <SearchIndex  
class="org.apache.jackrabbit.core.query.lucene.SearchIndex">
             <param name="useCompoundFile" value="true" />
             <param name="minMergeDocs" value="1000" />
             <param name="maxMergeDocs" value="100000" />
             <param name="mergeFactor" value="10" />
             <param name="bufferSize" value="10" />
             <FileSystem  
class="org.apache.jackrabbit.core.fs.local.LocalFileSystem">
                 <param name="path" value="${wsp.home}/index" />
             </FileSystem>
         </SearchIndex>

I thank you in advance for your support

Philipp Bracher


Mime
View raw message