You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by majohnst <ma...@lattaoutdoors.com> on 2008/11/06 20:05:18 UTC

Luecene Queries

I know Jackrabbit can use XPath and SQL to query nodes, but what about native
lucene queries such as:

+nodeType:article +author:"Joe Smith"
-- 
View this message in context: http://www.nabble.com/Luecene-Queries-tp20367353p20367353.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Re: Luecene Queries

Posted by Marcel Reutegger <ma...@gmx.net>.
majohnst wrote:
> I know Jackrabbit can use XPath and SQL to query nodes, but what about native
> lucene queries such as:
> 
> +nodeType:article +author:"Joe Smith"

this is not supported. you have to use the jcr:contains() function, which maps
loosely to the lucene query syntax:

//*[jcr:contains(@nodeType, 'article') and jcr:contains(@author, '"Joe Smith"')]

regards
 marcel