jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philipp Bunge <b...@crimson.ch>
Subject BindVariable in JCR-SQL2 CONTAINS
Date Mon, 02 Nov 2009 14:28:08 GMT

I'm trying to use the following FullTextSearch query in Jackrabbit 2.0 beta1:
Query query = qm.createQuery("SELECT * FROM [my:document] AS document
WHERE CONTAINS(document.original, $x)", Query.JCR_SQL2);

But the following fails with a "java.lang.IllegalArgumentException:
not a valid variable in this query:"
query.bindVariable("x", vf.createValue("moo"));

In fact, query.getBindVariableNames() returns an empty array.

Did I miss something?

Thanks in advance,

View raw message