Re: [MarkLogic Dev General] question about organizing schema

2011-07-14 Thread helen chen
-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] Namens helen chen > Verzonden: woensdag 13 juli 2011 22:34 > Aan: General MarkLogic Developer Discussion > Onderwerp: Re: [MarkLogic Dev General] question about organizing schema > > Hi Geert

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread helen chen
schema and have it inherit the namespace of the schema that imports it > is sometimes called a "Chameleon" namespace design. > > This is achieved by placing the "common" schema in the empty > namespace, and using the following method to import it into another > sch

Re: [MarkLogic Dev General] question about organizing schema

2011-07-13 Thread helen chen
e (more or less your option 2) that > contains complex types for things like address and person. When defining an > editor, you simply say that the type of that element is that of the complex > type person. That way editor will be in its own namespace, but person as type > still shareab

[MarkLogic Dev General] question about organizing schema

2011-07-12 Thread helen chen
Hello there, I'm learning xml schema, and I have a question that somewhat confuses me. if I have a structure like the following: person profile firstname lastname title address street city state zip in Marklogic, if I have elemen

Re: [MarkLogic Dev General] question about search

2011-05-03 Thread Helen Chen
in the source that authors see, but it needs to be somewhere so the app can use it. Put it in your transform step. So my advice is treat the addition of a new element to support faster queries or extra features (like a word count) as not unusual, plan for it, and make it easy and automatic in

Re: [MarkLogic Dev General] question about search

2011-05-03 Thread Helen Chen
rson might be cited multiple times in an article and you want to count that, you'll want to specify "item-frequency" as an option to the cts:element-values() call. The default "fragment-frequency" would count several citations in the same article as just one. Hopefully

Re: [MarkLogic Dev General] question about search

2011-05-03 Thread Helen Chen
an optimized way to do this at scale. -jh- On May 3, 2011, at 12:13 PM, Helen Chen wrote: Hello there, We have article xml in marklogic, inside each article, it lists the references that this article cited. I want to do a search to find out that inside /article/back/reference/citation/ref/jcite

[MarkLogic Dev General] question about search

2011-05-03 Thread Helen Chen
Hello there, We have article xml in marklogic, inside each article, it lists the references that this article cited. I want to do a search to find out that inside /article/back/reference/citation/ref/jcite, which author is referenced most, or I can get a list of top 5 refauth who shows up in t

Re: [MarkLogic Dev General] question about cts:query

2011-03-14 Thread Helen Chen
equence passed to an and-query evaluates like "true." Damon From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.co

[MarkLogic Dev General] question about cts:query

2011-03-14 Thread Helen Chen
Hello there, I think I sent this message to the wrong email last time, so I'm resending it. I have a query like the following: let $and-evq := cts:and-query((cts:element-value-query(fn:QName("ns","coden"), "AA", ("case-insensitive")), cts:element-value-query(fn:Q

[MarkLogic Dev General] question about search

2010-12-20 Thread helen chen
Hello there, I have a situation that for the specified coden, volume, issue, if article is good, a collection is set. I want to count the total articles in this issue and then the count of articles that have collection set. The following is my query: import module namespace search="http://mar

Re: [MarkLogic Dev General] how to do query like group and max in sql

2010-11-17 Thread helen chen
nst a large number > of articles. > > -jh- > > > On Nov 17, 2010, at 8:08 AM, helen chen wrote: > >> Hello there, >> >> I have data structure like the following, and each means a xml >> file or fragment >> >> . A 1 >> 1. >

Re: [MarkLogic Dev General] how to do query like group and max insql

2010-11-17 Thread helen chen
Hi Geert, Yes, I posted similiar question before, that was for the same coden, and I do a element-values to get volume list, then do element-values to get issue list. This time it is similiar, but different. I have a list of codens, and I don't need to get list of volumes or list of issues, I

Re: [MarkLogic Dev General] how to do query like group and max in sql

2010-11-17 Thread helen chen
Hi Tim, actually is just a tag in the article xml, but it is unique, volume and issue are also unique in the article. We have a lot of articles for each issue, 20-30 issues for each volume, may be over 100 volumes for each coden, The result I want to get should not be big because I only wan

[MarkLogic Dev General] how to do query like group and max in sql

2010-11-17 Thread helen chen
Hello there, I have data structure like the following, and each means a xml file or fragment . A 1 1. . A 2 6. . B 2 10. . B 3 5. . C 3 10. . C 5 8. I want to do a query that similiar with group by and max in sql: I

Re: [MarkLogic Dev General] question about logging

2010-11-09 Thread helen chen
ien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit > bericht kunnen geen rechten worden ontleend. > >> From: general-boun...@developer.marklogic.com >> [mailto:general-boun...@developer.marklogic.com] On Behalf Of >> helen chen >>

Re: [MarkLogic Dev General] question about newline character

2010-11-08 Thread Helen Chen
--- David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.com 812-482-5224 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen Sent: Monday,

Re: [MarkLogic Dev General] question about newline character

2010-11-08 Thread helen chen
ut newline character > > Use character entity encoding > &x0a; > > example: > > "foo bar" > > > I find this page extremely useful to translate any unicode char/string > into various representations. > > http://rishida.net/tools/conversion

Re: [MarkLogic Dev General] question about logging

2010-11-08 Thread helen chen
another with only small documents. > > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Monday, November 08, 2010 3:14 PM > To: Jason Booth > Cc: General Mark Logi

[MarkLogic Dev General] question about newline character

2010-11-08 Thread helen chen
Hi there, In Marklogic xquery, if I have a sequence of string, and I want to join this sequence with new line character, like using fn:string-join(), how do I specify the new line character? Thanks, Helen ___ General mailing list General@developer.mar

Re: [MarkLogic Dev General] question about logging

2010-11-08 Thread helen chen
roach in a sandbox database > to see what I mean. Then, once you feel comfortable with it move your code > into your application. > > Best Regards, > > Jason > > > ________ > From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] question about logging

2010-11-08 Thread helen chen
ny tiny > files, but perhaps the Audit logging already fulfills your needs.. > > Kind regards, > Geert > >> -Original Message- >> From: general-boun...@developer.marklogic.com >> [mailto:general-boun...@developer.marklogic.com] On Behalf Of >> hel

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread Helen Chen
it goes. Thanks, Helen >>> "Helen Chen" 11/05/10 8:34 PM >>> Hi Jason, The invoke() needs to use main module, I prefer to not use main module so I can call functions. And if each step is a document, I feel that will create too many documents, and these documents

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread Helen Chen
), $step, (), (fn:concat("step-", $article-id), "steps")) From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] On Behalf Of helen chen [hc...@aip.org] Sent: Friday, November 05, 2010 4:36 PM To: General Mark Logic Developer Discu

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
log that information to a document in MarkLogic. One history > document for each document that is processed. --wunder > > On Nov 5, 2010, at 12:46 PM, helen chen wrote: > >> Hi David, >> >> What happened here is: when the article get published, I have to do >> so

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
rden ontleend. > >> From: general-boun...@developer.marklogic.com >> [mailto:general-boun...@developer.marklogic.com] On Behalf Of >> helen chen >> Sent: vrijdag 5 november 2010 16:34 >> To: General Mark Logic Developer Discussion >> Subject: Re: [MarkLogic D

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
slow things down > a lot. > > > > David A. Lee > Senior Principal Software Engineer > Epocrates, Inc. > d...@epocrates.com > 812-482-5224 > > > > > > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun.

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
them to a > particular log. > > wunder > > On Nov 5, 2010, at 11:44 AM, helen chen wrote: > >> Hi Walter, >> >> When you say "configure MarkLogic so the system log level includes your >> extra log messages", where can I do the configuratio

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
Logic so the system log level > includes your extra log messages. Configure syslog_ng to route those log > messages to the file you want. > > wunder > == > Walter Underwood > walter.underw...@marklogic.com > > On Nov 5, 2010, at 8:33 AM, helen chen wrote: > >&g

Re: [MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
the xdmp:log() and concatenation > the various message parts, e.g. > > xdmp:log(concat("Path: ", {$path})) > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen >

[MarkLogic Dev General] question about logging

2010-11-05 Thread helen chen
Hello there, In Marklogic, I use xdmp:log() to log message to ErrorLog.txt file. I want to do some logging similar to script, like I specify the path and file name, then I write just the message I want to this file and then keep appending message to this file. I expect that this should not s

Re: [MarkLogic Dev General] Inserting node to xml before it is loaded in Marklogic

2010-10-28 Thread helen chen
I got it. It works for me. Thanks, Helen On Oct 28, 2010, at 1:34 PM, seme...@hotmail.com wrote: > in-mem-update won't update nodes from the DB. What I have done it create a > new node in memory based on the one loaded from the DB. Maybe there's a > better, I don't know. > > Something like t

Re: [MarkLogic Dev General] Inserting node to xml before it is loaded in Marklogic

2010-10-28 Thread helen chen
Hello there, I'm interested in the memupdate from http://github.com/marklogic/commons/tree/master/memupdate/ and I tried it. I found one thing that I don't understand: If I manually get the article node data and assign it to $doc as static data, it will work, like let $doc :=

Re: [MarkLogic Dev General] question about using same db or separate db

2010-10-11 Thread helen chen
is intended solely for the use of the individual to whom it is >> addressed. Any review, disclosure, copying, distribution, or use of this >> e-mail communication by others is strictly prohibited. If you are not the >> intended recipient, please notify us immediately by retu

Re: [MarkLogic Dev General] question about using same db or separate db

2010-10-11 Thread helen chen
trictly prohibited. If you are not the > intended recipient, please notify us immediately by returning this message to > the sender and delete all copies. Thank you for your cooperation. > > > > > > > On Oct 11, 2010, at 3:16 PM, helen chen wrote: > >>

Re: [MarkLogic Dev General] question about using same db or separate db

2010-10-11 Thread helen chen
pying, distribution, or use of this > e-mail communication by others is strictly prohibited. If you are not the > intended recipient, please notify us immediately by returning this message to > the sender and delete all copies. Thank you for your cooperation. > > > >

Re: [MarkLogic Dev General] question about using same db or separate db

2010-10-11 Thread helen chen
ed. Any review, disclosure, copying, distribution, or use of this > e-mail communication by others is strictly prohibited. If you are not the > intended recipient, please notify us immediately by returning this message to > the sender and delete all copies. Thank you for your cooperation.

[MarkLogic Dev General] question about using same db or separate db

2010-10-11 Thread helen chen
We have a system that needs to deal with articles going through staging stage and production stage. Basically when article comes in, it stays in staging stage. After a lot of operations and verifications the article gets published, then at this time it will be moved to production stage. The arti

Re: [MarkLogic Dev General] question about document-load

2010-10-11 Thread helen chen
it should work: > > xdmp:document-load('/test.xml', > > > { for $c in xdmp:document-get-collections('/test.xml') return > {$c} } > > > > Nuno > > On Fri, Oct 8, 2010 at 3:21 PM, helen chen wrote: > ? > _

[MarkLogic Dev General] question about document-load

2010-10-08 Thread helen chen
I'm reading marklgoic API for xdmp:document-load function. It says if the document already exists, then it replaces the content in the existing document as an update operation I have a document (/test.xml) with some collections set with it. When I do a reload using xdmp:document-load function,

Re: [MarkLogic Dev General] question about namespace as attribute

2010-08-30 Thread helen chen
the > binding as needed, ideally at just the right scope. > > So yes I suggest your last sentence is correct, don't worry about it. > > -David > > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.

Re: [MarkLogic Dev General] question about namespace as attribute

2010-08-30 Thread helen chen
let $ns := fn:namespace-uri-from-QName(fn:node-name($subnode)) return if($ns eq "http://www.w3.org/1998/Math/MathML";) then local:add-ns-node($subnode, "m", "http://www.w3.org/1998/Math/MathML";) else $subnode :) $a/node() } On Aug 2

Re: [MarkLogic Dev General] question about namespace as attribute

2010-08-30 Thread helen chen
e > they're needed. In your output it's actually there. I get this: > > test > You may not see the xmlns namespace declaration if you use a web browser's > view as XML facility because, inexplicably, browsers often suppress that. In > CQ hit the Text view instead

[MarkLogic Dev General] question about namespace as attribute

2010-08-27 Thread helen chen
If I run the following code, xquery version "1.0-ml"; let $a := http://www.w3.org/1998/Math/MathML"; xmlns="mynamespace">test return element {fn:QName("mynamespace","article")} { $a/@* , $a/node() } the return I got is test I missed the namespace definition in the original

Re: [MarkLogic Dev General] question about search

2010-08-26 Thread helen chen
ut-of-the-box way to combine these, and > thus avoid the OR in your query. > > -m > > On Aug 26, 2010, at 6:49 AM, helen chen wrote: > >> Hello there, >> >> we have different kind of papers so our data are in 3 different DTDs. >> >> When I d

[MarkLogic Dev General] question about search

2010-08-26 Thread helen chen
Hello there, we have different kind of papers so our data are in 3 different DTDs. When I do search I need to do a search across all the 3 DTD data. For example I need to search an author's name "smith" in an area that keyword="aaa", I think maybe the option node will be like the following, b

[MarkLogic Dev General] question about calculating data from cts:element-values

2010-08-26 Thread helen chen
Hi there, I need to do a thing: In each article, there is a unique element called volume, it is a number value. I need to return a range list that divide the volume number into 100 and then make the list like: 1000-1099, 1100-1199, 1200-1299 This is to group the volume list into shorter

Re: [MarkLogic Dev General] question about getting document from another database

2010-08-19 Thread helen chen
ocal:foo"), > xs:QName("ARG1"), $x, > xs:QName("ARG2"), $y), > > {xdmp:database("OtherDatabase")} > ) > Both of those code snippets are from memory, so they may not be quite right. > > Wayne. > > > On 08/19/201

[MarkLogic Dev General] question about getting document from another database

2010-08-19 Thread helen chen
I'm inside marklogic and in database A, if I want to get some document from another database B and do something, like if I want to get the list of document with uri pattern "/a/b/*xml" from database B, how can I do it? Thanks, Helen ___ General mai

[MarkLogic Dev General] question about search:search

2010-07-22 Thread helen chen
If I want to use search:search to do the query like volume > 10 and volume < 25 and word "laser", how do I create the constraint? Or do I have to create customized constraint for volume part? I'm thinking about the range constraint, but not sure how to use it. Thanks, Helen __

Re: [MarkLogic Dev General] question about search:search constraint

2010-07-22 Thread helen chen
ent-range-query for the search. > > So it is best to add the collation attribute in the range element. > > Sorry for the confusion. > > Silvano > > > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of

Re: [MarkLogic Dev General] question about search:search constraint

2010-07-22 Thread helen chen
on wrote: > Albeit, the API doc isn't clear that you can specify a collation on a range, > although it can be inferred from the example and > search:suggest examples. But it probably should be mentioned in the > definition in the search:search section. > > On Jul 22, 2010

Re: [MarkLogic Dev General] question about search:search constraint

2010-07-22 Thread helen chen
collation=a > > > > > > Silvano > > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Thursda

[MarkLogic Dev General] question about search:search constraint

2010-07-22 Thread helen chen
I'm learning marklogic search, I want to create a range constraint so I can get the facet. The problem is: the element range index is created using the collation "http://marklogic.com/collation/en/MO";, not the default collation in search:search. so when I create constraint like the following:

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-11 Thread Helen Chen
eral-boun...@developer.marklogic.com] On Behalf Of > Helen Chen > Sent: zondag 11 juli 2010 15:05 > To: general@developer.marklogic.com > Cc: Helen Chen > Subject: Re: [MarkLogic Dev General] how to do > multi-transaction in afunction > > Hi Geert, > > >F

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-11 Thread Helen Chen
Hi Geert, >From the first day we use marklogic, somehow it was decided to use XDBC server, that's because we have a lot of other programs outside of marklogic and we use xcc to connect to marklogic, get data and then pass to other program. And from that on we just stick to XDBC server, I have not

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-10 Thread Helen Chen
gt;> http://developer.marklogic.com/pubs/4.1/apidocs/Ext-8.html#xdm >> p:function >> -module >> >> >> If you can get ahold of a function thats already imported >> maybe you can find its path and pass that to eval. >> >> >> >> -Original Me

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-08 Thread helen chen
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Thursday, July 08, 2010 3:19 PM > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic Dev General] how to do multi-transaction in > afunction > > Hi David, > > Maybe

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-08 Thread helen chen
> There's probably a way ! > But what I do in similar cases is use relative paths > > import module namespace="mine" at "../../common/module.xqy" ; > > > > > -Original Message- > From: general-boun...@developer.marklogic.com > [mai

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-08 Thread helen chen
> > > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Wednesday, July 07, 2010 5:04 PM > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-07 Thread helen chen
[mailto:general-boun...@developer.marklogic.com] On Behalf Of >> helen chen >> Sent: woensdag 7 juli 2010 16:41 >> To: General Mark Logic Developer Discussion >> Subject: Re: [MarkLogic Dev General] how to do >> multi-transaction in afunction >> >> Hi Dan

Re: [MarkLogic Dev General] how to do multi-transaction in afunction

2010-07-07 Thread helen chen
Daidalos BV > Hoekeindsehof 1-4 > 2665 JZ Bleiswijk > > T +31 (0)10 850 1200 > F +31 (0)10 850 1199 > > mailto:geert.jos...@daidalos.nl > http://www.daidalos.nl/ > > KvK 27164984 > > > De informatie - verzonden in of met dit e-mailbericht - is afkomstig v

Re: [MarkLogic Dev General] how to do multi-transaction in a function

2010-07-06 Thread Helen Chen
aa.xml", ("http://py";)) , xdmp:document-get-collections("/aa.xml") , xdmp:document-add-collections( "/aa.xml", ("http://mytest";))') , xdmp:eval('xdmp:document-get-collections("/aa.xml")') ) }; local:mytest() -Danny From: gener

[MarkLogic Dev General] how to do multi-transaction in a function

2010-07-06 Thread helen chen
I want to do an update to a document and then see the update immediately. I did a test like the following: I add a collection to a document, then try to get it, within the same transaction I cannot see the new collection. That means I have to be in the seperate transaction. declare function loc

Re: [MarkLogic Dev General] question about namespace

2010-06-30 Thread helen chen
dien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit > bericht kunnen geen rechten worden ontleend. > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: woensdag 30 juni 2010 17:20

[MarkLogic Dev General] question about namespace

2010-06-30 Thread helen chen
I have the following code: first I insert an xml file into marklogic xquery version "1.0-ml"; declare namespace oins="http://mynamespace.org";; xdmp:document-insert("/test1.xml", http://mynamespace.org";>AAA9611); then I do a node-replace to change a node value xdmp:node-replace( fn:doc("/tes

Re: [MarkLogic Dev General] any tool for load testing with mrklogic?

2010-05-27 Thread helen chen
I found it. Never mind. On May 27, 2010, at 11:21 AM, helen chen wrote: > Hi Mark, > > I did a quick test for performance meters, seems very good. On the tutorial > page, I want to see the full list of the properties for Configuring > PerformanceMeters part, but the README

Re: [MarkLogic Dev General] any tool for load testing with mrklogic?

2010-05-27 Thread helen chen
com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Thursday, May 27, 2010 8:41 AM > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] any tool for load testing with mrklogic? > > I have a heavy function in Marklogic module, and I

Re: [MarkLogic Dev General] any tool for load testing with mrklogic?

2010-05-27 Thread helen chen
n this, but that would be the > boilerplate script for a load test. > > > > > David A. Lee > Senior Principal Software Engineer > Epocrates, Inc. > d...@epocrates.com > 812-482-5224 > > > > > > > -Orig

[MarkLogic Dev General] any tool for load testing with mrklogic?

2010-05-27 Thread helen chen
I have a heavy function in Marklogic module, and I want to do a load test. During load test, I want to pass different parameters to this function, this way I can see during short time how Marklogic can handle the large amount of data. I also want to set how many concurrent user at the same tim

Re: [MarkLogic Dev General] how to create a padding string

2010-05-13 Thread helen chen
oc-2007-01.xqy"; > > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Thursday, May 13, 2010 1:06 PM > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic Dev General] how

Re: [MarkLogic Dev General] how to create a padding string

2010-05-13 Thread helen chen
tml > > > > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Thursday, May 13, 2010 11:24 AM > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] how to creat

Re: [MarkLogic Dev General] how to create a padding string

2010-05-13 Thread helen chen
w to create a padding string > > functx, which I belive is built into marklogic has this, and if not the > source is > http://www.xqueryfunctions.com/xq/functx_pad-string-to-length.html > > > > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@

[MarkLogic Dev General] how to create a padding string

2010-05-13 Thread helen chen
I want to create a string using one character with specific length, it is like padding. In marklogic 0.9-ml, I can do something like fn:string-pad("0", 3), it will give me "000" How can I do it in marklogic 1.0-ml? Thanks, Helen___ General mailin

Re: [MarkLogic Dev General] question on query

2010-05-10 Thread helen chen
ml > ml:put -r -baseuri /Docs/ x*.xml > > -David > > > http://www.xmlsh.org/ModuleMarkLogic > > > > David A. Lee > Senior Principal Software Engineer > Epocrates, Inc. > d...@epocrates.com > 812-482-5224 > > > > > > > -Origina

Re: [MarkLogic Dev General] question on query

2010-05-06 Thread helen chen
t; 812-482-5224 > > > > > > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of helen chen > Sent: Thursday, May 06, 2010 2:15 PM > To: General Mark Logic Developer Discussi

Re: [MarkLogic Dev General] question on query

2010-05-06 Thread helen chen
se to get rid of deleted fragments.. > > Kind regards, > Geert > >> -Original Message- >> From: general-boun...@developer.marklogic.com >> [mailto:general-boun...@developer.marklogic.com] On Behalf Of >> helen chen >> Sent: donderdag 6 mei 2010 19:

Re: [MarkLogic Dev General] question on query

2010-05-06 Thread helen chen
gt;> -Original Message- >> From: general-boun...@developer.marklogic.com >> [mailto:general-boun...@developer.marklogic.com] On Behalf Of >> helen chen >> Sent: donderdag 6 mei 2010 18:46 >> To: General Mark Logic Developer Discussion >> Subject: Re:

Re: [MarkLogic Dev General] question on query

2010-05-06 Thread helen chen
et dit e-mailbericht - 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. > From: general-boun...@developer.marklogic.co

[MarkLogic Dev General] question on query

2010-05-06 Thread helen chen
I have a query works on one structure but not on another set of structure, I couldn't see the clue, for the working one: our data is like in the following structure .. the following are examples of the data, each tag means one xml in marklogic: article 1: ...AAA11123 article 2: ..

Re: [MarkLogic Dev General] question about json in marklogic 4

2010-04-21 Thread helen chen
JSON >> >> Pick a way >> Pick another. >> which is better ? which is "right" ? >> Now add >> >> barbletchmore text >> >> >> Did the way you first pick work for this too ? >> >> >> >> >> From:

[MarkLogic Dev General] question about json in marklogic 4

2010-04-20 Thread helen chen
Does marklogic 4 has API that can convert xml node to json format string? I tried xdmp:to-json() function, it seems that it only wrap the xml node with double quote, didn't convert the xml node to json format. like: let $a := test return xdmp:to-json($a) I got result "test" Did I miss anyt

RE: [MarkLogic Dev General] RE: how to build the tree based on data

2010-04-13 Thread Helen Chen
Thanks Geert. I cannot believe that I didn't seen this part in the document. Now for proof of concept, I feel this part is pretty good for me. For my situation, the speed is good enough for now. I still have other part of data for the page, I'll put everything together and see how the speed is.

[MarkLogic Dev General] question on testing multithread update

2010-04-13 Thread Helen Chen
I want to do a test : if I have 10 concurrent users updating the same xml document inside marklogic, what will happen to the document and speed. But not sure how to do it in marklogic. Anyone did this before and have suggestion? Thanks, Helen ___ Gene

RE: [MarkLogic Dev General] RE: how to build the tree based on data

2010-04-13 Thread Helen Chen
onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: general- boun...@developer.marklogic.com > [mailto:general- boun...@developer.marklogic.com] On Behalf Of > Helen Chen > Sent: donderdag 8 april 2010 22:58 > T

[MarkLogic Dev General] RE: how to build the tree based on data

2010-04-08 Thread Helen Chen
Hi Kelly, I tried your solution, it seems much faster. The problem for me now is: our production machine does not have element range index for coden and volume, I set it on development machine, it is pretty fast, took about 0.1 ~ 0.2 seconds to get result, this makes me pretty excited. But it doe

RE: [MarkLogic Dev General] how to build the tree based on data

2010-04-07 Thread Helen Chen
Hi there, I need to set up all the element range indexes to test the query. Once I get through I'll let you know . Thanks, Helen >>> Geert Josten 04/07/10 11:09 AM >>> Hi David, > My *guess* is not that Helen is against using > distinct-values() but that she's discovered, as all of us > have,

Re: [MarkLogic Dev General] how to build the tree based on data

2010-04-07 Thread Helen Chen
.@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Helen Chen Sent: Tuesday, April 06, 2010 4:53 PM To: General Mark Logic Developer Discussion Cc: Helen Chen Subject: Re: [MarkLogic Dev General] how to build the tree based on data Hi David, Thanks for the

Re: [MarkLogic Dev General] how to build the tree based on data

2010-04-07 Thread Helen Chen
in ML may involve pre-processing the data into a tree structure. I've had to do the same thing myself from flat struture to generate fast trees. -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Helen Chen

Re: [MarkLogic Dev General] how to build the tree based on data

2010-04-06 Thread Helen Chen
:= //article[volume eq $v and coden eq $c] return } } -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Helen Chen Sent

[MarkLogic Dev General] how to build the tree based on data

2010-04-06 Thread Helen Chen
our data is like in the following structure ...paper> the following are examples of the data, each tag means one xml in marklogic: article 1: ...AAA11issue>123 article 2: AAA12issue>233 article 3: AAA23issue>355 article 4: ACD52issue>899 article 5: AB

Re: [MarkLogic Dev General] how to get xquery module full path?

2010-02-17 Thread Helen Chen
hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Helen Chen Sent: woensdag 17 februari 2010 15:42 To: General Mark Logic Developer

[MarkLogic Dev General] how to get xquery module full path?

2010-02-17 Thread Helen Chen
I connect to marklogic through XDBC server, the root for this server is /mydir/myroot and it use file system as module on file system, the xquery code is in /mydir/myroot/test/myxqy/a.xqy this structure is for switching directory around, so I can have different versions like /test/m

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Helen Chen
richt onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Helen Chen Sent: woensdag 20 januari 2010 16:56 To: General Mark Logic

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Helen Chen
one posted. Thanks, Helen On Jan 20, 2010, at 7:23 PM, Florent Georges wrote: Helen Chen wrote: Hi, Description: XDMP-NOTANODE: doc()/child::ns1:article/ descendant::ns1:sub[attribute::temp1 or attribute::temp2]/base-uri(.) -- xs:anyURI("/pt/ajr_1.xml") is not a node It look

Re: [MarkLogic Dev General] question about cts:search

2010-01-21 Thread Helen Chen
.@developer.marklogic.com ] On Behalf Of Helen Chen Sent: Wednesday, January 20, 2010 16:56 To: General Mark Logic Developer Discussion Cc: Helen Chen Subject: Re: [MarkLogic Dev General] question about cts:search Hi Geert, Thanks. Now I understand why sometimes when I use document-uri() and

Re: [MarkLogic Dev General] question about cts:search

2010-01-20 Thread Helen Chen
ns here: http://developer.marklogic.com/pubs/4.1/apidocs/AccessorBuiltins.html#fn :document-uri (particularly read Summary and User Notes) Kind regards, Geert -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of

Re: [MarkLogic Dev General] question about cts:search

2010-01-20 Thread Helen Chen
Hi Geert, I run your query for $doc in doc()/ns1:article//ns1:sub[not(@temp1 or @temp2)] let $uri := try { base-uri($doc) } catch ($e) { () } where not($uri) return $doc and it returns empty sequence. if I take "not" out in the where clause, like for $doc in doc()/ns1:article//n

Re: [MarkLogic Dev General] question about cts:search

2010-01-20 Thread Helen Chen
y only one document, but it seems that I cannot put fn:document-uri at the end of the query. Thanks, Helen >>> Andrew Welch 1/20/2010 1:43 PM >>> 2010/1/20 Helen Chen : > Hi Andrew and Geert, > > It did work much much faster and better, I can run it on production now. >

Re: [MarkLogic Dev General] question about cts:search

2010-01-20 Thread Helen Chen
AM, Andrew Welch wrote: 2010/1/20 Helen Chen : Hi there, I'm using marklogic as my xml database, and I have a node inside xml like: ... I have a large set of data, and I want to find out which xml file has node without attribute temp1 or attribute temp2. I tried to use the query

  1   2   >