Re: [MarkLogic Dev General] Help with Corb2 'Server connection lost?' error

2017-08-08 Thread Raghu
Zach, If you still could not resolve it, I was getting the exact same error, I was using an earlier version of xcc jar and when I changed it, it worked without any issues. Thanks! Raghu On Tue, Oct 18, 2016 at 10:57 AM, Dunlap, Zachariah wrote: > Hello all, > > > > I’m attempti

[MarkLogic Dev General] Trigger not showing up in admin Databse-> Triggers

2017-08-03 Thread Raghu
his regard is appreciated. Thanks! Raghu ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] concurrent invocation of xquery ending up with duplicate writes

2017-05-23 Thread Raghu
eader xml is invoked concurrently by several threads, only one of the invocation has to insert an xml? Note: I need that random-xml inserted, before the reader.xqy completes execution and the URI of the random-xml involves dynamically generated ID and NOT a constant URI. Thanks in advance

[MarkLogic Dev General] Marklogic xquery best practices

2017-01-13 Thread Raghu
All, Are there any best practices for Xquery in Marklogic, Following are few of my doubts 1. If my xquery is huge will it affect the performance? 2. If my xquery imports many library modules will it have an impact on the performance? 3. Is there a recommended directory structure or package str

[MarkLogic Dev General] Marklogic Xquery best practices and package structure

2017-01-02 Thread Raghu
structure? Please point me to documents if any for the Xquery/Marklogic Do's ad Don'ts Thanks! Raghu ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] finding the number of occurences of an element in an xml

2016-11-17 Thread Raghu
Hi All, I've got around 40 million XML documents out of which few documents are having an element say element x twice (they are supposed to have only one element x), I need to find the list of documents are there with multiple occurrences of that element x. what would be the ideal way to query the

Re: [MarkLogic Dev General] Fwd: xdmp:hash32 and xdmp:hash64 algorithm

2015-08-05 Thread Raghu
Hi all, To add to that question, I have a requirement, I have to hash certain value at xquery end and the same value has to be hashed/unhashed at Java end. Is there a hashing function in Marklogic which exactly matches with Java hash implementation? Thanks in advance! Raghu On Wed, Aug 5, 2015

Re: [MarkLogic Dev General] Need to remove unused xml namespace prefix

2015-07-22 Thread Raghu
cal) name "title" can be differentiated, by looking at > within what namespace they have been defined. > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ > > > On 21 July 2015 at 19:30, Asit Nautiyal wr

Re: [MarkLogic Dev General] Need to remove unused xml namespace prefix

2015-07-22 Thread Raghu
e, Jul 21, 2015 at 1:30 PM, Asit Nautiyal wrote: > > Hi Raghu, > > Here you want to keep the text.xml as part of " > http://somewhere.something.com"; namespace and want to make its child > element (child) part to other namespace ""http://anywhere.anything.co

[MarkLogic Dev General] Need to remove unused xml namespace prefix

2015-07-21 Thread Raghu
thing.com";> ); doc("/text.xml")//*:child Result http://somewhere.something.com"; xmlns=" http://anywhere.anything.com"/> Thanks in advance! Raghu ___ General mailing list General@developer.marklogic.com Manage your subscript

[MarkLogic Dev General] XDMP:BADPINAME while doing an unquote

2015-06-03 Thread Raghu
e xml declaration. What is the best way to handle this? I tried repair-full option, it works, but it is MODIFYING the xml content, which I DO NOT want to happen. Thanks! Raghu ___ General mailing list General@developer.marklogic.com Manage your subscription at:

[MarkLogic Dev General] XDMP:BADPINAME while doing an xdmp:unquote

2015-06-03 Thread Raghu
Hi all, ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Consuming a multipart response and parsing body part in xquery

2015-02-10 Thread Raghu
implemented, but there >> was something WRT multipart, if I remember correctly): >> >> >> https://github.com/fgeorges/expath-http-client-ml/blob/master/src/http-client.xq >> >> Regards, >> >> -- >> Florent Georges >> http://fgeorges.org/

[MarkLogic Dev General] Consuming a multipart response and parsing body part in xquery

2015-02-09 Thread Raghu
Hi All, I'm calling a web service from my xquery and the response I'm getting is a multipart response with two parts. I need the binary content(pdf) in the second part to be stored in Marklogic, using xdmp:document-insert(), but I'm unable to do that, I'm getting the following errors If I use

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
ormal. - No clusters, just a standalone host. Leaving that aside,my doubt is that every time the first xquery locks the resource (URI), how is the second xquery able to update the node? Isn't the outcome supposed to be the same always? Thanks! Raghu On Mon, Dec 8, 2014 at 9:15 PM, Ro

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
I've used two different browsers for each qconsole, yet the same results. On Mon, Dec 8, 2014 at 8:49 PM, Raghu wrote: > Thanks David Ennis, > > PFB the response below > > 1. The second xquery doesn't have a sleep, that was a copy paste error on > my part. >

Re: [MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
ent in the xquery could obtain a write lock (I believe) However I don't understand the scenario where either of the xqueries getting executed twice? Is it just me? Is somebody else also able to reproduce this as well? I'm working on a concurrent request POC, any help is appreciated Thanks!

[MarkLogic Dev General] Marklogic node replace of same node results in inconsistent output

2014-12-08 Thread Raghu
t;), doc("book.xml")/catalog/book[1]/price *Sample xml* Gambardella, Matthew XML Developer's Guide Computer 0004 2000-10-01 An in-depth look at creating applications with XML. I'm using Marklogic version 7.0-2.3, I'm unable to figure out a pattern. Can someone explain

Re: [MarkLogic Dev General] Marklogic node replace

2014-12-08 Thread Raghu
twitter.com/HintTech> <http://www.facebook.com/HintTech> > <http://www.linkedin.com/company/HintTech> > > On 8 December 2014 at 12:43, Raghu > wrote: > >> Hi all, >> >> I have two xqueries >> >> >> >> _

[MarkLogic Dev General] Marklogic node replace

2014-12-08 Thread Raghu
Hi all, I have two xqueries ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] XDMP-SPECIALPROP- cannot update server maintained properties

2014-04-01 Thread Raghu
Hi All, I had several documents in one of my ML 7.x DB in a different environment and I wanted to clear the DB excluding a few documents, So I'd xqsync'ed it as a back up to my localhost ML DB which is ML 6.x. Now when I'm trying to sync them back to ML 7.x DB and I'm getting the folowing e

Re: [MarkLogic Dev General] Regarding updating index in Master replica DB

2014-03-22 Thread Raghu
ndex with replication disabled, you will likely end > up doing a bulk resynchronization when you enable replication again (i.e. > your replica database will not be able to serve queries until it > resynchronizes). > > Wayne. > > > > On 03/20/2014 02:32 PM, Gene Thomas w

[MarkLogic Dev General] Regarding updating index in Master replica DB

2014-03-20 Thread Raghu
reindexing,refragmenting, merging and replication simultaneously? Is there a way to delay the replication till the reindexing merging stuff etc is complete without turning the replication off? Thanks Raghu ___ General mailing list General

[MarkLogic Dev General] Monitor Dashboard query Task server - threads timings for longest running xqueries

2014-03-04 Thread Raghu
timing for longest running xqueries also take into account the time the thread is waiting in the Task server queue? Thanks Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Marklogic 6.0.2.1 adding clear attribute to tags when wrapped inside an element

2013-02-27 Thread Raghu
odify the content in any aspect, is there some way to achieve it? Please help me out here! Thanks in advance Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] validate request body xml/binary

2013-02-25 Thread Raghu
-xml) content?? Thanks in advance. Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Somebody please help me!

2013-02-12 Thread Raghu
Introducing fragment roots is it gonna take additional memory/indexes? Is there an easier way without having to create any fragments/indexes? On Tue, Feb 12, 2013 at 6:48 PM, Raghu wrote: > @Ryan - you are right cts:search is also giving the same results when > "unfiltered"

Re: [MarkLogic Dev General] Somebody please help me!

2013-02-12 Thread Raghu
807 > > I maybe wrong since I've never tested this sort of thing with cts:uris, > but someone smarter than me might be able to have a more certain answer. > > -Ryan Dew > > > On Tue, Feb 12, 2013 at 4:20 PM, Raghu > wrote: > >> HI all, >> >> >>

[MarkLogic Dev General] storing a html 'as it is' in xml

2013-02-12 Thread Raghu
ot;?? I've tried declare boundary-space preserve; declare option xdmp:output "indent=no"; but still no luck OTHER THAN CDATA/ Binary is there any other way to do this? Any help is appreciated Thanks in advance! Raghu ___ Gen

[MarkLogic Dev General] Somebody please help me!

2013-02-12 Thread Raghu
HI all, I have a parent - detail with two children -name , value I wrote an xquery to fetch the document with both name and value (should be siblings) with 'a' as value cts:search is working a s expected whereas cts:uris isn't Please find below the sample xquery Thanks in advance xdmp:document-

Re: [MarkLogic Dev General] Facets in Search API - Is it picking from indexes or from database

2012-09-25 Thread Raghu
HI Radhika, In order to use the facet you need an element range-index on that element enabled and so IMHO it is picking up the values from range index. Thanks Raghu On Tue, Sep 25, 2012 at 12:12 PM, Vedavalli Radhika wrote: > I have a basic doubt. > > The search:facet that c

Re: [MarkLogic Dev General] XDMP-RANGEINDEX while invoking a module

2012-09-18 Thread Raghu
Hi Mike, The Marklogic version I'm using is 5.0-3 And the range index configuration is dateTime http://mynamespace modificationdate false Thanks Raghu On Tue, Sep 18, 2012 at 10:44 PM, Michael Blakeley wrote: > Which version of MarkLogic Server are you using?

[MarkLogic Dev General] XDMP-RANGEINDEX while invoking a module

2012-09-18 Thread Raghu
in it. Could somebody please tell me if special characters could cause this kind of error, or is there something else I should check with. Thanks in advance Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Xquery review tool

2012-01-16 Thread Raghu
Hi Ron, I was looking for this. I am exploring xqdt source and I'm finding it a little difficult to add my own custom rule. Is this going to be an open-source? Thanks Raghu On Mon, Jan 16, 2012 at 1:23 PM, Ron Hitchens wrote: > > It's more than a rumor, I am wor

Re: [MarkLogic Dev General] Trying to add a rule to xqdt plug-in

2012-01-03 Thread Raghu
, 2012 9:51 PM, "Geert Josten" wrote: Hi Raghu, Not quite sure I understand what you are trying to achieve. Can you elaborate on what you are trying to do? Are you talking about something like the Java imports cleanup of Eclipse, but applied to declarations in an XQuery module? Or is it

[MarkLogic Dev General] Trying to add a rule to xqdt plug-in

2012-01-03 Thread Raghu
many dependencies. Thanks in advance Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Auto increment id in an update xquery

2011-12-16 Thread Raghu
dom number for your unique identifier. John On 16/12/11 13:55, Raghu wrote: > Hi All, > I need to auto increment an id (long int) base... -- John Snelson, Senior Engineer http://twitter.com/jpcs MarkLogic Corporation http://w

[MarkLogic Dev General] Auto increment id in an update xquery

2011-12-16 Thread Raghu
e for that user. Thanks Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Raghu
BTW mine was a modify/update trigger that was one reason I didn't suspect directory delete's behavior. But still it was on a directory and it starts making sense now!! :) On Tue, Nov 15, 2011 at 11:34 PM, Raghu wrote: > No I didn't mean that way. Sorry no offence meant. My po

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Raghu
ral-boun...@developer.marklogic.com] *On Behalf Of *Raghu > *Sent:* Tuesday, November 15, 2011 9:43 AM > > *To:* General MarkLogic Developer Discussion > *Subject:* Re: [MarkLogic Dev General] Directory exists but > xdmp:directory-delete return xdmp:doc-not-found > >

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-11-15 Thread Raghu
Hey Danny, Seems that I'd set triggers to triggers database and this was causing xdmp:directory-delete() not to work. Hope you had fixed this. I would have never suspected that triggers would have such an impact. weird behavior isn't it? Cheers Raghu On Tue, Oct 25, 20

Re: [MarkLogic Dev General] data export / import

2011-10-27 Thread Raghu
Hi Gary, Did you try XQSync?? http://marklogic.github.com/xqsync/ Cheers Raghu On Thu, Oct 27, 2011 at 11:19 PM, Gary Larsen wrote: > Are there any means within MarkLogic (or utilities) to move data from one > database to another, or across servers? It seems this would be fairly eas

[MarkLogic Dev General] Spawning an xquery getting triigered twice

2011-10-27 Thread Raghu
range behaviour?? Thanks in advance Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-10-25 Thread Raghu
Thanks Dan! On Tue, Oct 25, 2011 at 9:41 PM, Danny Sokolsky < danny.sokol...@marklogic.com> wrote: > Hi Raghu, > > ** ** > > That sounds right because in 4.2, there were a number of inconsistencies in > the way MarkLogic handled directory and property deletes that w

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-10-25 Thread Raghu
I'd given the version wrong in my previous mail, please ignore it Thanks in advance Raghu On Tue, Oct 25, 2011 at 6:34 PM, Raghu wrote: > HI Danny, > > I tried the same in 4.1 version and even though there was no > property document for the directory, the direc

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-10-25 Thread Raghu
advance Raghu On Mon, Oct 24, 2011 at 10:25 PM, Danny Sokolsky < danny.sokol...@marklogic.com> wrote: > Hi Raghu, > > ** ** > > I can think of 2 things to look at: > > ** ** > > ** ** > > **1) **Make sure the directory exists. A directory is a

Re: [MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-10-25 Thread Raghu
4 > > ** ** > > *From:* general-boun...@developer.marklogic.com [mailto: > general-boun...@developer.marklogic.com] *On Behalf Of *Danny Sokolsky > *Sent:* Monday, October 24, 2011 12:55 PM > > *To:* General MarkLogic Developer Discussion > *Subject:* Re: [MarkLogic D

[MarkLogic Dev General] Directory exists but xdmp:directory-delete return xdmp:doc-not-found

2011-10-24 Thread Raghu
it? Should I set any document proerty? Please help me out. Thanks in advance Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] trigger not getting invoked in a clustered environment

2011-09-18 Thread Raghu
Hi Danny, Thanks once again. I'm not using any content processing framework. Its just an xquery. I don't have the luxury of adding nodes. Any ways it isn't throwing up any errors in the logs that is what is keeping me guessing.I will let you know if I find something interesting

Re: [MarkLogic Dev General] trigger not getting invoked in a clustered environment

2011-09-17 Thread Raghu
HI Danny, Thanks. I've ensured that everything is in place. The same trigger works fine in a single host but in a clustered environment it isn't invoking the module. Is there any setting which might cause this kind of behavior? Thanks Raghu On Fri, Sep 16, 2011 at 9:48

[MarkLogic Dev General] trigger not getting invoked in a clustered environment

2011-09-16 Thread Raghu
"/userdir/1234/", "infinity"), trgr:document-content("modify"), trgr:post-commit()), trgr:trigger-module(xdmp:database("Modules"), "/userdir/modules/xquery/", "migrate-helper.xqy"), fn:true(), xdmp:default-permissions()) Thanks in

Re: [MarkLogic Dev General] Reg: Advanced search

2011-05-23 Thread Raghu
HI Ambika Did you try additioanl query in options?? See if this hlps http://developer.marklogic.com/pipermail/general/2010-June/005590.html On Mon, May 23, 2011 at 9:28 PM, Raghu wrote: > Hi Ambika, > > > > > On Fri, May 6, 2011 at 7:42 PM, Abhishek53 S wrote:

Re: [MarkLogic Dev General] Reg: Advanced search

2011-05-23 Thread Raghu
Hi Ambika, On Fri, May 6, 2011 at 7:42 PM, Abhishek53 S wrote: > > Hi Ambika > > Marklogic provide the full text search over the element value so if > search:search or search:resolve uses the qtext without constraint as full > text over elements value.The element attribute value constraint is

[MarkLogic Dev General] sending an xml and pdf in a single response

2011-04-07 Thread Raghu
send it as a multipart response? Thanks in advance Raghu ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general