I’m working on a project that currently depends on MarkLogic’s reverse query
mechanism. This is a feature whereby you store documents that contain
MarkLogic-specific queries (queries in their cts namespace). These get indexed
in some way (no idea how the index works). You can then search for
Hi Christian,
Here you are (I hope this is sufficient, actual file content can be found
further down below):
· Test.java – A simple QueryModule
· Test.xq – The query I execute from within a UnitTest
· Test.xml – The XML that is queried (in my test, it was either located
Could you please provide me with a little, seld-contained example?
Thanks in advance,
Christian
Am 23.05.2017 14:14 schrieb "Johannes Echterhoff" <
echterh...@interactive-instruments.de>:
> Hi Christian,
> Thank you. This is very useful.
> One issue, though: in my test, it looks like the
Hi Christian,
Thank you. This is very useful.
One issue, though: in my test, it looks like the ancestors of the element that
is processed by the query are not available/accessible. What am I missing?
Best regards,
Johannes
-Ursprüngliche Nachricht-
Von: Christian Grün
Hi Johannes,
Welcome to the list.
> However, I wonder if it is possible to evaluate the expression also within
> the query module itself, i.e. when method “parse” is called. Is there a way
> to do so?
Absolutely. You find some examples in [1].
If you your class extends the QueryModule class –
Hello,
I am writing a custom QueryModule that can be used to parse information from a
given XML element. The module has a function like the following:
public ParsedType parse (Object arg) throws QueryException {
if (arg instanceof ANode) {
return utils.parse((ANode) arg);
} else
6 matches
Mail list logo