[MarkLogic Dev General] Marklogic query help

Geert Josten geert.josten at dayon.nl
Wed Feb 29 13:29:28 PST 2012


Hi Abdul,

Short answer: no.

You could retrieve values from one doc, optionally using lexicons, and
check them against a different doc, using lexicons or search. But you
would have to make a list which values you would like to include in the
compare, retrieve them all, pass them to a combined search query on the
other doc.

Comparisons, often applied to detect doc changes, are usually done on hash
keys, which are pre-calculated and stored as doc property or attribute on
the doc itself. Perhaps that could apply to your case too?

Kind regards,
Geert

> -----Oorspronkelijk bericht-----
> Van: general-bounces at developer.marklogic.com [mailto:general-
> bounces at developer.marklogic.com] Namens akm
> Verzonden: woensdag 29 februari 2012 22:15
> Aan: general at developer.marklogic.com
> Onderwerp: [MarkLogic Dev General] Marklogic query help
>
> Hi All,
>
> Is it possible to do a Marklogic cts:search query to compare between
> the two XML elements in a document?
> After the search, we can compare it with fn:compare.  But I would like
> to compare during the search.
> Any help is much appreciated.
>
>
> Thanks,
> Abdul
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general


More information about the General mailing list