jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shoener" <mshoe...@softwareapps.net>
Subject Search file content but not all node properties
Date Thu, 24 Sep 2009 16:39:35 GMT
I have the following query:

//element(*, hfs:fileInfo)[jcr:contains(., 'search term') or
jcr:contains(@hfs:description, 'search term')]/(@hfs:description)

It returns all documents that have the 'search term' contained in either a
the description property, the content of the file, but it also searches all
other property values.

What I want is to search only the content and my specified property
(description), but leave out documents that happen to have the 'search term'
in another property.

It this possible?


Best Regards,

Michael Shoener
Support Staff
Software Application Services, Inc.



Mime
View raw message