jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Lucene Fields
Date Mon, 03 Mar 2008 13:07:48 GMT
Paco Avila wrote:
> Can I search using fields? There is any field defined. I've readed
> Lucene documentation and allows search like:
> title:"The Right Way" AND text:go

No, you cannot. Even though Jackrabbit uses a Lucene index, the fields for JCR 
properties do not map 1:1 to Lucene fields. Instead you can use the following:

//element(*, some:type)[jcr:contains(@title, '"The Right Way"') and 
jcr:contains(@text, 'go')]


View raw message