jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@netenviron.com>
Subject lucene query syntax in jcr:contains()
Date Mon, 04 Jun 2012 04:54:15 GMT
Am I correct in assuming that jcr:contains() queries uses the lucene
syntax, as described at

Eg. I do a search like

'societ~ generale~')] order by @jcr:score descending

- on nodes that have a catchall properties subnode,
'profileAttributes'. Some nodes have values such as Société Générale.
Some have only Générale etc.

When I use the syntax 'societ~ OR generale~' I get the expected result
with an OR sounds like search. However, if I omit the OR, it works
like an AND search. Also, using AND doesn't work at all (gives no
hits), while if I use &&, it seems to work as an AND search.

Also, I get different results depending on whether I use " or ', so
"societ~ generale~" works as an OR search. Is it not spec compliant to
use '' instead of ""? Or is it not a pure lucene syntax, but something
else. Is it documented somewhere?


View raw message