jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: enabling keyword search in the repository
Date Mon, 20 Apr 2009 06:48:30 GMT
On Sat, Apr 18, 2009 at 4:02 PM, far4ever <fathimafarhath@gmail.com> wrote:
> i need to enable the system to do keyword searching. but if i use the XPATH
> i will be able to search with in the node in that certain path. I don't have
> a clear idea on how to implement it.
> will  i be able to do using XPATH or is there any other way of doing it.

JCR allows full-text search in XPath using the jcr:contains function [1]:

//*[jcr:contains(., 'my-keyword')]

If you use SQL, this would look like this [2]:

SELECT * FROM * WHERE CONTAINS(., 'my-keyword')

[1] http://www.day.com/specs/jcr/1.0/
[2] http://www.day.com/specs/jcr/1.0/


Alexander Klimetschek

View raw message