-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi Everyone,
I am a bit confused and maybe you can help me. I have a database set
up with documents in it and I am attempting to access that through a
servlet so I can query the database from a request.
However, all I am getting back from the API is the query itself and
not the actual results of the query. The stripped down code is below:
String query_str = "declare variable $regex as xs:string external; <results>for $x in //entry where $x//*[fn:matches(.,$regex)] order by fn:replace($x, '^(\\d+|\\?|\\s+|\\*|-)+','') return $x</results>";
ClientSession session = new ClientSession("localhost", 1984, "edil", "********");
session.execute(new Open("edil"));
ClientQuery query = session.query(this.query_str);
query.bind("regex", search);
String results = query.execute();
query.close();
session.close();
The "results" string is the query_str with no binding (just the
variable). Have I done someting wrong here?
Thank you for your help
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iF4EAREIAAYFAlN7SmgACgkQDjE+CSbP7HrlvwD/RwRh9oSde0wa2uKqyhERORwy
caeD7bcZoy6GlFz0ePsA/RG08Exv/Nmq3Hcbls1YrxjADLO3B4CBYrbx2YmLIKZ4
=oPyO
-----END PGP SIGNATURE-----