RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Lee, David
: 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

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Glidden, Douglass A
: Thursday, November 19, 2009 16:45 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] search for non-existing elements To really tell if it will help, try adding an xdmp:query-trace to your query and then look at how many fragments are selected. I did the following experim

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Danny Sokolsky
id...@boeing.com -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, November 19, 2009 16:16 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] search for non-ex

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Geert Josten
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

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Glidden, Douglass A
neral-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, November 19, 2009 16:16 To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] search for non-existing elements Hi David, > Each conceptDef is a fragment (its parent, terminology is a fragment > Root)

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Lee, David
Hi David, > Each conceptDef is a fragment (its parent, terminology is a > fragment Root) I rewrote it as this : I don't think that defining 'terminology' as fragment Root puts each conceptDef in its own fragment. Actually, as 'terminology' seems to be the root element of your document, it would

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Geert Josten
Hi David, > Each conceptDef is a fragment (its parent, terminology is a > fragment Root) I rewrote it as this : I don't think that defining 'terminology' as fragment Root puts each conceptDef in its own fragment. Actually, as 'terminology' seems to be the root element of your document, it woul

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Lee, David
m] On Behalf Of Danny Sokolsky Sent: Thursday, November 19, 2009 12:02 PM To: General Mark Logic Developer Discussion Subject: RE: [MarkLogic Dev General] search for non-existing elements The FLOWR is not likely to make it faster, as it has to do the same amount of work. I think you said that con

RE: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Danny Sokolsky
ur test as well. -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andrew Welch Sent: Thursday, November 19, 2009 8:40 AM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] sear

Re: [MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Andrew Welch
> doc("/NDFRT/NDFRT_Public_2009.05.12_TDE.xml")//conceptDef[empty(definingConcepts/concept)] > This is taking about 10 seconds right now. > Any suggestions ?   Thanks ! ...just a suggestion, but try rewriting it as a flowr expression, such as: for $c in //conceptDef where fn:empty($c/definingCo

[MarkLogic Dev General] search for non-existing elements

2009-11-19 Thread Lee, David
I'm learning that cts:search() is vastly faster then xpath expressions ... So I'm trying to come up with a cts:search() for the following doc("/NDFRT/NDFRT_Public_2009.05.12_TDE.xml")//conceptDef[empty(defining Concepts/concept)] This is searching for all conceptDef elements which have