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/6.6.5.2_jcr_contains_Function.html
[2] http://www.day.com/specs/jcr/1.0/8.5.4.5_CONTAINS.html


Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message