Kooper wrote:
> 
> 
> 
>> Try jcr:like(@title, '%&%'). The contains works on the Lucene-analyzed
>> words, so I guess & is considered a delimiter and not put into the
>> index as a single word.
>> 
>> The jcr:contains supports wildcards in form of '*' as well, so you
>> could do it with jcr:contains(@title, '*&*'), but my quick test showed
>> it fails if there are spaces next to the & char.
>> 
>> In general, don't rely on jcr:contains() for "specific",
>> application-based searches. It should always be used only for direct
>> "fuzzy" user searches.
>> 
>> Regards,
>> Alex
>> 
>> -- 
>> Alexander Klimetschek
>> [email protected]
>> 
>> 
> 
> Thanks for quick reply, it works :). The only worry I have about
> perfomance as I don't sure what is faster jcr:like or jcr:contains
> 
I've read about perfomance of jcr:like vs jcr:contains and it seems that the
first one could slower perfomance that is critical for me. May be there is
another ways of making jcr:contains work with '&'? Thanks a lot.
-- 
View this message in context: 
http://www.nabble.com/Jackrabbit-search-does-not-work-with-jcr%3Acontains%28%40title%2C-%27-%27%29-tp24322188p24353203.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to