jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Query in file content ,Ms word
Date Wed, 06 Feb 2008 10:34:22 GMT
Hi Hamid,

Hamid Reza Sahlolbey wrote:
> Hi;
> I save some files in JCR and for Ms word files I enabled indexing and it
> seems the text extractor works well (I saw the index in {ws.home}/index
> directory)
> 
> My problem is when I want to search for the Ms Word Content I used the
> following Xpath query but it can't find my file.
> 
> //vsarchive:d/vsarchive:content/*/jcr:content[jcr:contains(@jcr:data,'hamid'
> )]

you cannot use jcr:contains() on binary properties directly. the following will 
work:

//vsarchive:d/vsarchive:content/*/jcr:content[jcr:contains(., 'hamid')]

regards
  marcel

Mime
View raw message