Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-13 Thread Jonathan Cook - FMT
MarkLogic Developer Discussion general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Re: [MarkLogic Dev General] Are xml attributes indexed by default Hi Jon, Your original expression was like this: /*[ /*/itemMeta/url[@href

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-12 Thread Jonathan Cook - FMT
@developer.marklogic.com general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Yeah but in MarkLogic 4.1 it explicitly says the 2nd step doesn't use the indexes: qry:info-traceStep 2 does not use indexes: *[itemMeta/url/@href eq 123]/qry:info

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-12 Thread Jonathan Cook - FMT
To: General MarkLogic Developer Discussion general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Re: [MarkLogic Dev General] Are xml attributes indexed by default Hi Jon, Your original expression was like this: /*[ /*/itemMeta/url

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-12 Thread Michael Blakeley
by default Re: [MarkLogic Dev General] Are xml attributes indexed by default Hi Jon, Your original expression was like this: /*[ /*/itemMeta/url[@href=$public_url] ] That would return every root element in the database if there is any doc which meets the predicate expression. I

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-12 Thread Evan Lenz
To: General MarkLogic Developer Discussion general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Re: [MarkLogic Dev General] Are xml attributes indexed by default Hi Jon, Your original expression was like this: /*[ /*/itemMeta/url

[MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Jonathan Cook - FMT
Hi, Are attributes indexed by default in Mark Logic Server? The documentation says the whole document structure is indexed but that doesn¹t answer the question really. For example I want to ensure the href attribute is indexed for the following xquery: xquery version 1.0-ml; import module

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Geert Josten
:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Jonathan Cook - FMT *Verzonden:* woensdag 11 januari 2012 12:56 *Aan:* general@developer.marklogic.com *Onderwerp:* [MarkLogic Dev General] Are xml attributes indexed by default Hi

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Jonathan Cook - FMT
of handling this..   Kind regards, Geert   Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Jonathan Cook - FMT Verzonden: woensdag 11 januari 2012 12:56 Aan: general@developer.marklogic.com Onderwerp: [MarkLogic Dev General] Are xml

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Michael Blakeley
: general@developer.marklogic.com Onderwerp: [MarkLogic Dev General] Are xml attributes indexed by default Hi, Are attributes indexed by default in Mark Logic Server? The documentation says the whole document structure is indexed but that doesn’t answer the question really. For example I

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Geert Josten
Re: [MarkLogic Dev General] Are xml attributes indexed by default Hi Jon, Your original expression was like this: /*[ /*/itemMeta/url[*@href*=$public_url] ] That would return every root element in the database if there is any doc which meets the predicate expression. I think

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Evan Lenz
: Re: [MarkLogic Dev General] Are xml attributes indexed by default Hi Jon, Your original expression was like this: /*[ /*/itemMeta/url[@href=$public_url] ] That would return every root element in the database if there is any doc which meets the predicate expression. I think writing

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread seme...@hotmail.com
/*[itemMeta/url/@href eq $public_url] is fully searchable on MarkLogic 5, but not 4.1 dunno why From: evan.l...@marklogic.com To: general@developer.marklogic.com Date: Wed, 11 Jan 2012 14:36:40 -0800 Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Or slightly

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Evan Lenz
Date: Wed, 11 Jan 2012 14:36:40 -0800 Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Or slightly more simply: /*[itemMeta/url/@href eq $public_url] However, I gave this to xdmp:plan() and, for some reason, it's not fully leveraging the indexes here, despite my

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread Evan Lenz
@developer.marklogic.commailto:general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Yeah but in MarkLogic 4.1 it explicitly says the 2nd step doesn't use the indexes: qry:info-traceStep 2 does not use indexes: *[itemMeta/url/@href eq 123