On Sat, Apr 18, 2009 at 4:02 PM, far4ever <[email protected]> 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
[email protected]

Reply via email to