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: [email protected] [mailto:general- > [email protected]] Namens akm > Verzonden: woensdag 29 februari 2012 22:15 > Aan: [email protected] > 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 > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
