try, but realize that a wildcard prefix is quite cpu intensive. This is not jackrabbit specific, but Lucene, or rather inverted index specific and beyond the scope of this user list. Just realize that if your query takes seconds to complete for just a couple of thousand of binary data's you know where to look
Regards ard //element(*, nt:file)[jcr:contains(jcr:content, '*foo*')] On Wed, Jul 29, 2009 at 7:59 AM, go canal<[email protected]> wrote: > however, partial match does not work - if my syntax is correct: > > //element(*, nt:file)[jcr:contains(jcr:content, '%foo%')] > > > Did I over look something ? > rgds, > canal > > > > > ________________________________ > From: go canal <[email protected]> > To: [email protected] > Sent: Wednesday, July 29, 2009 12:51:16 PM > Subject: Re: jcr full text search query syntax > > saw an earlier post, need to follow this syntax: > > //element(*, nt:resource)[jcr:contains(., 'foo')] > //element(*, nt:file)[jcr:contains(jcr:content, 'foo')] > > rgds, > canal > > > > > ________________________________ > From: go canal <[email protected]> > To: [email protected] > Sent: Wednesday, July 29, 2009 12:24:14 PM > Subject: jcr full text search query syntax > > read JCR spec...realized that should use jcr:contains not jcr:like...... > > this one works (but this is for all properties if I understand correctly): > > //*[jcr:contains(., 'keyword')] > > but this one does not work (what I want to look for is the keyword in the > content of the file, not any properties): > //*[jcr:contains(@jcr:data, 'keyword')] > > so I can not use jcr:data ? how ? > > rgds, > canal > > > > > ________________________________ > From: go canal <[email protected]> > To: [email protected] > Sent: Wednesday, July 29, 2009 7:12:43 AM > Subject: jcr full text search query syntax > > hello, > trying to get full text search query but just cannot make it work correctly. > > this is how I created a file node: > ...... > node.setProperty(JcrConstants.JCR_DATA, file.getInputStream()); > ...... > > this is my query: > //*[jcr:like(@jcr:data, '%Class%')] > > it does not return anything.....anything wrong with my query ? > thank you very much, > canal > > >
