In the Jackrabbit FAQ I see this question: Why doesn't //*[jcr:contains(@jcr:data, 'foo')] return matches for binary content? Extracted text from binary content is only indexed on the parent node of the @jcr:data property. Use jcr:contains() on the nt:resource node.
My problem in that this query: //element(*, nt:file)[jcr:contains(jcr:content, 'foo')] will also match jcr:content nodes with the 'foo' text in their properties. For example, if I want to find document with the word "pdf" inside, will also match documents which jcr:mimeType is 'application/pdf'. How can I search only by the binary indexed data? -- OpenKM http://www.openkm.com http://www.guia-ubuntu.org
