I can always wish. An attribute worth indexing, IMHO is "number of children elements" or even "contains any child element".
-----Original Message----- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, November 19, 2009 4:42 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] search for non-existing elements Hi David, > > My guess is that the non-existance of elements is not > > indexed. I would think there would be some way in ML to > > index that information but I cant find it. > > It is pretty difficult to put something in an index that isn't there.. > :-) > ======================== > > I read in the ML documentation that index are done on > concepts not just terms, so in theory this should be possible... You would still need to tell MarkLogic on before hand what to look for that shouldn't be there (which as far as I know isn't possible, at least, I haven't heard of a cts:missing-element-query yet). Or otherwise it would have to derive all possible elements from a schema or so (that might not be available) and index the absence of all of them. I am certain that would create a lot more index then you will ever use.. ;-) Kind regards, Geert Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general