jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Shoener" <mshoe...@softwareapps.net>
Subject Query mixin properties but also pull back nt:file information
Date Mon, 14 Sep 2009 19:15:46 GMT
Is there any way to query my custom mixin (hfs:file) and still be able to
pull back the default jcr:content information?

The default query (which searches the entire node contents and all
properties):

	//element(*, nt:file)[jcr:contains(jcr:content, 'text to
query')]/rep:excerpt(.)

The query I am using (which searches only the @hfs:description and
@hfs:formname priperties):

	//element(*, hfs:file)[jcr:contains(@hfs:description, 'text to
query') or jcr:contains(@hfs:formname, 'text to query')]/(@hfs:description |
@hfs:formname)

I also want to be able to search on jcr:content and return the same
information that the default search returns, plus my @hfs:description and
@hfs:fromname values, if possible.


Best Regards,

Michael Shoener
Support Staff
Software Application Services, Inc.



Mime
View raw message