Re: [MarkLogic Dev General] fragments filter large difference

2018-05-24 Thread Geert Josten
Hi Paul, Optimizing XPath is always tricky. I think the optimizer didn’t recognize that `collection($mycollection)/myelem` and ` collection($mycollection)[./myelem]` are (in terms of index resolution) effectively the same. And if the optimizer didn’t, it is likely that MarkLogic would have to

Re: [MarkLogic Dev General] how to save multiple documents to file system.

2018-05-10 Thread Damon Feldman
Hi, I believe you are saving both docs to the file-system with two separate calls. I suggest when staring (and even generally) to include the XQuery header: declare option xdmp:mapping "false";. Which will not treat a sequence as an instruction to call a function multiple times. That’s w

Re: [MarkLogic Dev General] collection function searching

2018-05-10 Thread Erik Hennum
Hi, Paul: Syntactically, the XPath expressions * retrieve a sequence of documents from the database * extract a sequence of nodes from the sequence of documents (in case 2) * filter to produce a final sequence by applying the predicate to each item The engine tries to optimize XPath expressio

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-10 Thread Bharath Umesh
Thanks Shabana. That was very helpful. On Thu, May 10, 2018 at 2:48 PM, shabana khan wrote: > Hi Bharath, > > You can add document and collection in single step itself. If you look at > the syntax of xdmp.documentInsert(), you will seen that you can pass > collection in options node itself : >

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-10 Thread shabana khan
Hi Bharath, You can add document and collection in single step itself. If you look at the syntax of xdmp.documentInsert(), you will seen that you can pass collection in options node itself : declareUpdate(); xdmp.documentInsert( 'document URI', document, { collections : 'name o

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-10 Thread Bharath Umesh
Thanks, Christopher. I was able to add document and add this document to its collection in 2 steps. declareUpdate(); xdmp.documentInsert('", ""); Is this correct? Thanks, Bharath On Wed, May 9, 2018 at 6:08 PM, Christopher Hamlin wrote: > The second and third examples at > https://docs.ma

Re: [MarkLogic Dev General] How to specify Collection along with the document URI when inserting a marklogic document

2018-05-09 Thread Christopher Hamlin
The second and third examples at https://docs.marklogic.com/xdmp:document-insert shows collections being set. Do those work for you? On Wed, May 9, 2018 at 7:48 AM, Bharath Umesh wrote: > Hi > > How do I specify Collection info along with the document URI when inserting > a marklogic document.

Re: [MarkLogic Dev General] Not able to write in ErrorLog.txt (Markloglogc 9)

2018-05-03 Thread DK Singh
Yes, I got it Regards Dharmendra Kumar Singh On Thu, May 3, 2018 at 7:02 PM, Jason Hunter wrote: > In MarkLogic 9 each app server gets its own error log now. Have you > looked at the other files in the directory? > > -jh- > > > On May 3, 2018, at 21:21, DK Singh wrote: > > > > Hi I am using M

Re: [MarkLogic Dev General] Not able to write in ErrorLog.txt (Markloglogc 9)

2018-05-03 Thread Jason Hunter
In MarkLogic 9 each app server gets its own error log now. Have you looked at the other files in the directory? -jh- > On May 3, 2018, at 21:21, DK Singh wrote: > > Hi I am using Marklogic 9 and i am running simple query using xdmp:log > function from query console to write in in the ErrorLo

Re: [MarkLogic Dev General] Not able to write in ErrorLog.txt (Markloglogc 9)

2018-05-03 Thread DK Singh
Thanks Geert, It worked. Regards Dharmendra Kumar Singh On Thu, May 3, 2018 at 6:57 PM, Geert Josten wrote: > ErrorLog.txt is used for system-wide messages only since MarkLogic 9, and > app(-server) specific messages are written to _ErrorLog.txt. When > running xdmp:log from QConsole on po

Re: [MarkLogic Dev General] Not able to write in ErrorLog.txt (Markloglogc 9)

2018-05-03 Thread Geert Josten
ErrorLog.txt is used for system-wide messages only since MarkLogic 9, and app(-server) specific messages are written to _ErrorLog.txt. When running xdmp:log from QConsole on port 8000, look for 8000_ErrorLog.txt. You should find your messages there.. Messages can get a little scattered that way

Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster

2018-05-01 Thread Erik Hennum
neral-boun...@developer.marklogic.com On Behalf Of Erik Hennum Sent: Tuesday, May 1, 2018 10:24 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster Hi, Pooja: It's strange that one REST API appserver is working but another one

Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster

2018-05-01 Thread Pooja Rajput
0:24 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster Hi, Pooja: It's strange that one REST API appserver is working but another one isn't. How did you create the faulty appserver? Did you use the usua

Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster

2018-05-01 Thread Erik Hennum
r creation? Erik Hennum From: general-boun...@developer.marklogic.com on behalf of Pooja Rajput Sent: Tuesday, May 1, 2018 9:45:53 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Extension installation not working on marklogic c

Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster

2018-05-01 Thread Pooja Rajput
-boun...@developer.marklogic.com On Behalf Of Erik Hennum Sent: Tuesday, May 1, 2018 9:01 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster Hi, Pooja: >From the error message, I'm guessing the applicati

Re: [MarkLogic Dev General] Extension installation not working on marklogic cluster

2018-05-01 Thread Erik Hennum
Hi, Pooja: >From the error message, I'm guessing the application is calling >ExtensionLibrariesManager.list() That method doesn't take any parameters. So, the only input from the application consists of the connection parameters. Is it possible that the application is connecting to a port th

Re: [MarkLogic Dev General] Loading a text doc into the database

2018-04-28 Thread Simón Carbajal
Thank you very much Erik!! This worked! On 27 April 2018 at 17:25, Erik Hennum wrote: > Hi, Simón: > > Does it help if you specify a contentType property of "text/html; > charset=windows-1252" > on the document descriptor when passing in the document? > > > Hoping that's useful, > > > Erik Hennu

Re: [MarkLogic Dev General] Loading a text doc into the database

2018-04-27 Thread Erik Hennum
Hi, Simón: Does it help if you specify a contentType property of "text/html; charset=windows-1252" on the document descriptor when passing in the document? Hoping that's useful, Erik Hennum From: general-boun...@developer.marklogic.com on behalf o

Re: [MarkLogic Dev General] DataHub app digest authentication with MarkLogic 9

2018-04-27 Thread Ron Hitchens
GAH! Head. Banging. Desk. I knew about this patch. I applied it a while ago and it didn’t seem to fix the problem, but there were other issues still in play at that point. I had to roll some stuff back and did not re-apply the patch. In my trace output the “/v1” prefix was present i

Re: [MarkLogic Dev General] DataHub app digest authentication with MarkLogic 9

2018-04-26 Thread Ryan Dew
Hi Ron, You can find the changes that fixed this issue at https://github.com/marklogic-community/slush-marklogic-node/pull/520/files Basically, when performing the path as part of the digest authentication was missing the "/v1" prefix. On Thu, Apr 26, 2018 at 8:20 AM Ron Hitchens wrote: > >

Re: [MarkLogic Dev General] Regarding MarkLogic Upgrade XDMP-FORESTRESTOREFAILED

2018-04-18 Thread Mani, Sivasubramani (ELS)
.mis...@nl.abnamro.com] Sent: 18 April 2018 17:21 To: MarkLogic Developer Discussion Cc: Mani, Sivasubramani (ELS) Subject: Re: [MarkLogic Dev General] Regarding MarkLogic Upgrade XDMP-FORESTRESTOREFAILED *** External email: use caution *** XDMP-FORESTRESTOREFAILED: Restore failed for fo

Re: [MarkLogic Dev General] Regarding MarkLogic Upgrade XDMP-FORESTRESTOREFAILED

2018-04-18 Thread Mani, Sivasubramani (ELS)
ogic Developer Discussion Cc: Mani, Sivasubramani (ELS) Subject: Re: [MarkLogic Dev General] Regarding MarkLogic Upgrade XDMP-FORESTRESTOREFAILED *** External email: use caution *** Hi Siva, Based on the error, this looks to be a space error. Can you please check if you have enough space to per

Re: [MarkLogic Dev General] Regarding MarkLogic Upgrade XDMP-FORESTRESTOREFAILED

2018-04-18 Thread kirti singh
Hi Siva, Based on the error, this looks to be a space error. Can you please check if you have enough space to perform the restore job? Warm Regards, Kirti On Wed, 18 Apr 2018, 13:48 Mani, Sivasubramani (ELS), wrote: > Hi Team, > > > > I try to upgrade from MarkLogic 7 to MarkLogic 8 I use belo

Re: [MarkLogic Dev General] Regarding MarkLogic Upgrade XDMP-FORESTRESTOREFAILED

2018-04-18 Thread himanshu . mishra
XDMP-FORESTRESTOREFAILED: Restore failed for forest consynContentForest-1: SVC-FILWRT: File write error: write '/var/opt/MarkLogic/TmpForests/xyzContentForest-1/74ec/ListData': No space left on device No space left on your data partition Met vriendelijke groet / Kind regards / सादर, Him

Re: [MarkLogic Dev General] Change the collection TAG for set of documents

2018-04-11 Thread Damon Feldman
Hi, The collections are part of the document, so updating the collections updates the document. The document is the unit of caching, indexing and rewrite, and it is optimized in various ways, including being rewritten to a single, continuous record on disk – therefore it will be rewritten to di

Re: [MarkLogic Dev General] Near Query with min-occurs

2018-04-05 Thread Praveen Gontla
Damon, Your explanation is correct on what documents am I expecting for the query formed. Can you help what tools do you have to achieve this required behavior ? Thanks. On Wed, Apr 4, 2018 at 10:51 AM, Damon Feldman wrote: > Praveen, > > Can you tell us the use case? It looks like you might

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-04-05 Thread David Gorbet
this summer. Do you plan to be there? Would be great to catch up in person. From: general-boun...@developer.marklogic.com On Behalf Of Florent Georges Sent: Thursday, April 05, 2018 1:15 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Using metadata to store references

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-04-05 Thread Florent Georges
.com> *On Behalf Of *Florent Georges > *Sent:* Friday, March 23, 2018 3:09 AM > *To:* MarkLogic Developer Discussion > *Subject:* Re: [MarkLogic Dev General] Using metadata to store references > to several other docs? > > > > Hi David, > > Thank you for your response

Re: [MarkLogic Dev General] transformation of document formats

2018-04-05 Thread Philip Fennell
"general@developer.marklogic.com" Subject: Re: [MarkLogic Dev General] transformation of document formats Thanks, Mary for your reply. As per my understanding, CPF can be used to transform the PDF or any other format to XHTML. Is it possible to do another way around, like XML to PDF or

Re: [MarkLogic Dev General] transformation of document formats

2018-04-05 Thread Mary Holstege
: 2 Date: Tue, 3 Apr 2018 18:27:11 + From: Mary Holstege mailto:mary.holst...@marklogic.com>> Subject: Re: [MarkLogic Dev General] transformation of document formats To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Message-ID: mailto:op.zgwqvjhu

Re: [MarkLogic Dev General] transformation of document formats

2018-04-05 Thread Rajesh Kumar
-- > An HTML attachment was scrubbed... > URL: http://developer.marklogic.com/pipermail/general/ > attachments/20180403/fc271dd1/attachment-0001.html > > -- > > Message: 2 > Date: Tue, 3 Apr 2018 18:27:11 + > From: Mary Holstege > Subject: Re: [MarkLogic De

Re: [MarkLogic Dev General] Near Query with min-occurs

2018-04-04 Thread Damon Feldman
Praveen, Can you tell us the use case? It looks like you might want a phrase query on a set of terms like property tax, propensity tax, etc, and perhaps some notion of relevance or scoring where 4 mentions is more important than just one or two. There are other tools that may help if you tell

Re: [MarkLogic Dev General] Near Query with min-occurs

2018-04-04 Thread Mary Holstege
The semantics of this is a document in which prop* occurs at least 4 times, where one of those times is within distance 1 of tax. Here's the thing: index resolution of min-occurs requires positions of the appropriate type, and there are various cases where we can't tell in the indexes and le

Re: [MarkLogic Dev General] Near Query with min-occurs

2018-04-04 Thread Christopher Hamlin
The min-occurs is an option to the word-query, not the near-query. I'd check if results match what is described in the word query doc page. On Tue, Apr 3, 2018, 10:37 PM Praveen Gontla < praveenkumargontla...@gmail.com> wrote: > Team, > > Has anyone come across a query like this ? Trying to under

Re: [MarkLogic Dev General] transformation of document formats

2018-04-03 Thread Mary Holstege
On Tue, 03 Apr 2018 04:43:36 -0700, Rajesh Kumar wrote: > Hi Team, > > > Is there a way that word can be saved in MarkLogic and can be converted > to other > formats like PDF or ePUB within MarkLogic instead of calling external > API of a > different technology like Saxon. > > > Thanks, > >

Re: [MarkLogic Dev General] How to import xar files in MarkLogic

2018-04-01 Thread Florent Georges
Hi Siva, The EXPath Console for MarkLogic, amongst many other things, let you manage the packages (the XAR files) installed on app servers in MarkLogic. You can install XAR files from your disk (that you downloaded somewhere), or directly from CXAN (selecting a repository and a specific package i

Re: [MarkLogic Dev General] Regarding EXpath crypto

2018-04-01 Thread Florent Georges
Hi Siva, I am not aware of any implementation of EXPath Crypto for MarkLogic. I think there is one for BaseX, one for eXist, it might be implemented in Saxon as well, but I do not think there is one for MarkLogic, sadly. Regards, -- Florent Georges H2O Consulting http://h2o.consulting/ On 12

Re: [MarkLogic Dev General] encryption of username and password in gardle properties and set different user for harmonization

2018-03-29 Thread Damon Feldman
Vikas, Some information on encrypting passwords is located here: https://github.com/marklogic-community/ml-gradle/wiki/Encrypting-passwords . Let us know if that meets your need for item 1. Damon From: general-bounces-dev-marklogic on behalf of "vikas.sin...@cognizant.com" Reply-To: MarkLog

Re: [MarkLogic Dev General] General Digest, Vol 165, Issue 24

2018-03-27 Thread Mani, Sivasubramani (ELS)
Siva -- next part -- An HTML attachment was scrubbed... URL: http://developer.marklogic.com/pipermail/general/attachments/20180322/36398000/attachment-0001.html -- Message: 2 Date: Thu, 22 Mar 2018 15:04:40 + From: David Gorbet Subject: Re

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-03-23 Thread David Gorbet
then be able to use SPARQL to do whatever provenance queries you need. From: general-boun...@developer.marklogic.com On Behalf Of Florent Georges Sent: Friday, March 23, 2018 3:09 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Using metadata to store references to

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-03-23 Thread Florent Georges
Hi David, Thank you for your response! Short answers to your questions: "none" and "yes and no" :-) A bit of context, trying not to give too much details. We have several (technical) sources of data. We store these documents (often already processed WRT the original input). We build a "canoni

Re: [MarkLogic Dev General] code reference across db's.

2018-03-22 Thread Santhosh.Rajasekaran2
Hi Santhosh, Yes you can reference the modules in different data base when you use one of the below functions. In options parameter, you can specify the modules database name. Xdmp:eval() Xdmp:spawn() Xdmp:span-function() Thanks & Regards, Santhosh Rajasekaran It is very easy to defeat someone,

Re: [MarkLogic Dev General] Using metadata to store references to several other docs?

2018-03-22 Thread David Gorbet
What is the actual business meaning of the relationships between the documents? And is there something in the document that indicates this relationship, just not with the doc URI? From: general-boun...@developer.marklogic.com On Behalf Of Florent Georges Sent: Thursday, March 22, 2018 1:06 PM

Re: [MarkLogic Dev General] Regarding Mark Logic License

2018-03-22 Thread David Gorbet
Hi Siva, one correction: Encryption with an external KMS is part of the Advanced Security option. Encryption with the MarkLogic internal wallet is not. Sorry for the (potential) confusion. From: David Gorbet Sent: Thursday, March 22, 2018 8:05 AM To: general@developer.marklogic.com Subject: RE:

Re: [MarkLogic Dev General] Regarding Mark Logic License

2018-03-22 Thread David Gorbet
Hi Siva. Advanced Encryption is a feature that was introduced with MarkLogic 9, so your MarkLogic 7 license key will not be encoded for it. It's part of a separate option called Advanced Security. I've forwarded your email to the appropriate folks in MarkLogic who can help you move forward. Bes

Re: [MarkLogic Dev General] XML Developer jobs in Berlin

2018-03-21 Thread Trinh Lieu
Hi Hans, I’ll plan to include this in the April newsletter as well! Regards, Trinh From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Hans Hübner Sent: Tuesday, March 20, 2018 4:22 PM To: MarkLogic Developer Discussion Subject: [MarkLogi

Re: [MarkLogic Dev General] Importing a module from another imported module

2018-03-20 Thread Evgeny Degtyarev
Thanks, Florent! It's very useful! Regards, *Evgeny* On Mon, Mar 19, 2018 at 8:34 PM, Florent Georges wrote: > Not exactly. You can have several library modules with the same namespace > URI, but you have to import them all explicitly in the import statement: > > import module namespace ns = "

Re: [MarkLogic Dev General] Wrong Behavior of Term-Query vs. Value-Query

2018-03-19 Thread Will Thompson
Hi Hubertus, I would not expect that behavior, so probably the best thing to do is contact ML support if you have not already done so. My understanding is that element value queries use the same index data structures under the hood as word/term queries, so I would not expect fewer results for a

Re: [MarkLogic Dev General] Importing a module from another imported module

2018-03-19 Thread Florent Georges
Not exactly. You can have several library modules with the same namespace URI, but you have to import them all explicitly in the import statement: import module namespace ns = "http://ns"; at "/test/one.xqy", "/test/two.xqy"; $ns:var1, $ns:var2 ==> ('variable1', 'variable2') Not that it is a

Re: [MarkLogic Dev General] Importing a module from another imported module

2018-03-19 Thread Evgeny Degtyarev
Oh, I see. Thank you Ron! Regards, -- *Evgeny* On Mon, Mar 19, 2018 at 4:07 PM, Ron Hitchens wrote: > >Each module should have a unique namespace. > > > Ron Hitchens r...@overstory.co.uk, +44 7879 358212 <+44%207879%20358212> > > > On March 19, 2018 at 2:46:42 PM, Evgeny Degtyarev ( >

Re: [MarkLogic Dev General] Importing a module from another imported module

2018-03-19 Thread Ron Hitchens
Each module should have a unique namespace. Ron Hitchens r...@overstory.co.uk, +44 7879 358212 On March 19, 2018 at 2:46:42 PM, Evgeny Degtyarev ( evgeny.degtya...@lambdawerk.com) wrote: I have three files: module.application1.xqy xquery version "1.0-ml"; module names

Re: [MarkLogic Dev General] Potential System Entity Expansion with MarkLogic

2018-03-15 Thread Marcel de Kleine
Hello, Thanks for the reply. Your point about the appropriate security levels on your server is true, and having a solid security model in place should prevent loading local files. However, the fact is that the option still remains and that other scenario's using entity expansion (the xml bomb)

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-15 Thread Marcel de Kleine
nerable to the exploits without an option to turn it off. Document-insert is not affected as it expects a node at which point the original document is already processed. The unquote option sometimes prevents the execution of the exploits, sometimes not. Any thoughts on the matter would be appre

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Liam R. E. Quin
On Wed, 2018-03-14 at 16:40 -0500, Eliot Kimber wrote: > Anyway, the original sample doc was (is) valid and the injection can > be done if you have access to the ML server’s file system and ML has > read access to a directory you can write to and you can create and > can run XQuery to load the file

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Eliot Kimber
imber Reply-To: MarkLogic Developer Discussion Date: Wednesday, March 14, 2018 at 2:49 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention My earlier mail was wrong. I was able to replicate the behavior in ML 9 using query co

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb

2018-03-14 Thread Marcel de Kleine
ff. Document-insert is not affected as it expects a node at which point the original document is already processed. The unquote option sometimes prevents the execution of the exploits, sometimes not. Any thoughts on the matter would be appreciated! Thanks, Marcel Date: Wed, 14 Mar 2018 17:28

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Eliot Kimber
PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention Perhaps you could show the code that you used to insert the document into the database. I, personally, cannot get your code to work for a number of reasons. 1) having both an xml

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Keith Breinholt
Here is the closest I been able to come to inserting the "document". xquery version "1.0-ml"; let $doc := xdmp:unquote( xdmp:filesystem-file("C:/xxeInjection.xml") ) return ( $doc, xdmp:document-insert( "/xxeInjection.xml", $doc) ) Here is the contents of the xxeInjection.xml file are ex

Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Keith Breinholt
Perhaps you could show the code that you used to insert the document into the database. I, personally, cannot get your code to work for a number of reasons. 1) having both an xml processing statement and an HTML doctype is invalid. 2) Trying to assign the "document" to a variable throws an er

Re: [MarkLogic Dev General] Query Console and Database Browsing

2018-03-11 Thread Hans Hübner
Hi Florent, On Sat, Mar 10, 2018 at 9:20 PM, Florent Georges wrote: > You can have a look at the EXPath Console for MarkLogic. Make sure to > checkout the branch project-environs, which contains the latest devs: > > https://github.com/fgeorges/expath-ml-console/tree/project-environs > Thanks f

Re: [MarkLogic Dev General] Query Console and Database Browsing

2018-03-10 Thread Florent Georges
Hi Hans, You can have a look at the EXPath Console for MarkLogic. Make sure to checkout the branch project-environs, which contains the latest devs: https://github.com/fgeorges/expath-ml-console/tree/project-environs The section "Browser" in the above page should give you an idea of how it lets

Re: [MarkLogic Dev General] mlcp ingestion issue

2018-03-08 Thread Vikas.Singh6
arklogic.com] On Behalf Of David Gorbet Sent: Thursday, February 22, 2018 1:18 PM To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Subject: Re: [MarkLogic Dev General] mlcp ingestion issue You should log a support incident so we can look at the server logs. NEWSTAM

Re: [MarkLogic Dev General] Importing temporal documents with MLCP

2018-03-07 Thread Geert Josten
turn empty-sequence to let MLCP know it doesn't need to insert docs itself :) return () }; Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Geert Josten mailto:geert.jos...@marklogic.com>> Reply-To: MarkLogic Developer Discussion mailto:general@devel

Re: [MarkLogic Dev General] Field Word Queries using Search API

2018-03-02 Thread Alan Darnell
Thanks Will. We’ll look into the different parse options. Alan > On Mar 2, 2018, at 1:56 PM, Will Thompson wrote: > > Alan, > > It appears the behavior of search:parse() and cts:parse() are different in > this respect. cts:parse() uses the individual word tokens in the query, the > equiva

Re: [MarkLogic Dev General] Field Word Queries using Search API

2018-03-02 Thread Will Thompson
Alan, It appears the behavior of search:parse() and cts:parse() are different in this respect. cts:parse() uses the individual word tokens in the query, the equivalent of an ORing them: cts:parse('by:(twain frost)', map:new(map:entry("by", cts:element-reference(xs:QName("name") => cts:e

Re: [MarkLogic Dev General] Field Word Queries using Search API

2018-02-27 Thread Erik Hennum
Hi, Alan: Please work with your support representative to create a ticket to investigate the issue. You might experiment with a custom constraint to see whether that comes closer to what you need. Alternatively, you might find that cts:parse() provides a faster solution than search:parse() fo

Re: [MarkLogic Dev General] Importing temporal documents with MLCP

2018-02-24 Thread Geert Josten
Hi Hans, Sorry for being late with this reply, hopefully it is still useful to you. This was a non-trivial question though, so I had to poke around in the docs to verify various things.. I think it is possible with MLCP. You can override the document-insert mechanism of MLCP using an MLCP tran

Re: [MarkLogic Dev General] mlcp ingestion issue

2018-02-22 Thread Vikas.Singh6
Thanks David for quick reply will raise incident. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Gorbet Sent: Thursday, February 22, 2018 1:18 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] mlcp

Re: [MarkLogic Dev General] mlcp ingestion issue

2018-02-22 Thread David Gorbet
You should log a support incident so we can look at the server logs. NEWSTAMP generally indicates that there is a bottleneck on one of your hosts that is causing commits to be blocked on that host. Server logs should help us figure out where that is. From: general-boun...@developer.marklogic.co

Re: [MarkLogic Dev General] short question about result of sem:sparql-values

2018-02-20 Thread Erik Zander
...@developer.marklogic.com] För Geert Josten Skickat: den 20 februari 2018 15:17 Till: MarkLogic Developer Discussion Ämne: Re: [MarkLogic Dev General] short question about result of sem:sparql-values Hi Erik, Correct. The function returns a sequence of sem:binding objects. A sem:binding is a special type of map:map

Re: [MarkLogic Dev General] short question about result of sem:sparql-values

2018-02-20 Thread Geert Josten
Hi Erik, Correct. The function returns a sequence of sem:binding objects. A sem:binding is a special type of map:map, so you can use map functions on them. Here is a working example that returns concrete values: xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/seman

Re: [MarkLogic Dev General] Serialization encoding, SJS

2018-02-18 Thread Florent Georges
Well, yes, as simple as that :-) Thank you! -- Florent Georges H2O Consulting http://h2o.consulting/ On 15 February 2018 at 15:50, Christopher Hamlin wrote: > Maybe http://docs.marklogic.com/xdmp.setResponseEncoding > > > On Thu, Feb 15, 2018 at 4:09 AM, Florent Georges > wrote: > > Hi, > >

Re: [MarkLogic Dev General] Marklogic9 Oscar database

2018-02-15 Thread Christopher Hamlin
Hi, I'm not sure what exactly exercises are used, but MarkLogic University is probably the place I'd look: https://www.marklogic.com/learn/university/ There is a variety of instruction including self-paced, on demand, and instructor led. Free. /ch On Thu, Feb 15, 2018 at 10:03 AM, Noah Manuko

Re: [MarkLogic Dev General] Serialization encoding, SJS

2018-02-15 Thread Christopher Hamlin
Maybe http://docs.marklogic.com/xdmp.setResponseEncoding On Thu, Feb 15, 2018 at 4:09 AM, Florent Georges wrote: > Hi, > > I am using SJS, and I would like to set the encoding used for serializing > the response (a bit like xdmp:output or output:* for XQuery). > > Extra points if it is possible

Re: [MarkLogic Dev General] archival strategies in bitemporal data

2018-02-14 Thread Jason Hunter
Hi Swayam, Databases are a logical grouping of documents that will be queried together. Forests are the various physical locations of the documents on disk. You'll never actually need to move documents between databases (logical entities) in order to free space (which is a physical thing). S

Re: [MarkLogic Dev General] ingestion issue with mlcp ingestion

2018-02-14 Thread Vikas.Singh6
@developer.marklogic.com Subject: Re: [MarkLogic Dev General] ingestion issue with mlcp ingestion Hi, Are you running MLCP through a load balancer? If so, you should try to instead point it directly to one of your nodes. Best, Rob Rob Szkutak Senior Consultant MarkLogic Corporation rob.szku

Re: [MarkLogic Dev General] ingestion issue with mlcp ingestion

2018-02-14 Thread Rob Szkutak
Hi, Are you running MLCP through a load balancer? If so, you should try to instead point it directly to one of your nodes. Best, Rob Rob Szkutak Senior Consultant MarkLogic Corporation rob.szku...@marklogic.com www.marklogic.com Fro

Re: [MarkLogic Dev General] archival strategies in bitemporal data

2018-02-13 Thread Serious Guy
Hi All, Can anyone please help in the below issue? Thanks and regards, Swayam Kartikey Sinha On 05-Feb-2018 9:46 PM, "Serious Guy" wrote: > Hi All, > > Sorry for concise. Let me rephrase it. > > Can you help me to figure out how to move documents from one database to > another database. Say I

Re: [MarkLogic Dev General] Restoring Linux back up on Windows machine in ML

2018-02-13 Thread Ranvir Singh
Hi Pooja, Do the following changes in Label file of the forest: winnt amd64 Then it should work. Thanks, Ranvir Singh | LinkedIn: in.linkedin.com/in/singhranvir/ On Tue, Feb 13, 2018 at 11:07 PM, Pooja Rajput wrote: > Hi Team, > > > > Is there any way I can restore backup taken on linux mac

Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic

2018-02-13 Thread Keith Breinholt
in the README of my ml-unique > library: https://github.com/grtjn/ml-unique > > Cheers, > Geert > > From: on behalf of " > abhinav.mish...@cognizant.com" > Reply-To: MarkLogic Developer Discussion > Date: Tuesday, February 13, 2018 at 9:39 AM > To: "g

Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic

2018-02-13 Thread Abhinav.Mishra3
Tuesday, February 13, 2018 at 9:39 AM To: "general@developer.marklogic.com<mailto:general@developer.marklogic.com>" mailto:general@developer.marklogic.com>> Subject: Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic Hi Geert, Thank you for your response. I guess it is j

Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic

2018-02-13 Thread Geert Josten
@developer.marklogic.com<mailto:general@developer.marklogic.com>" mailto:general@developer.marklogic.com>> Subject: Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic Hi Geert, Thank you for your response. I guess it is just something we are wondering about. If

Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic

2018-02-13 Thread Abhinav.Mishra3
...@developer.marklogic.com on behalf of Geert Josten Sent: Tuesday, February 13, 2018 8:55 AM To: MarkLogic Developer Discussion; general-requ...@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic Hi Abhinav, Can you elaborate on what you mean with ‘unique

Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic

2018-02-13 Thread Geert Josten
Hi Abhinav, Can you elaborate on what you mean with ‘unique across environments’? Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of abhinav mishra mailto:abhinavmishr...@gmail.com>> Reply-To: MarkLogic Developer Discussion mailto:general@developer.marklogic.co

Re: [MarkLogic Dev General] ML 9 Issues

2018-02-07 Thread Geert Josten
ogic.com>> Subject: Re: [MarkLogic Dev General] ML 9 Issues I am using 9.0.-4. Yes, have a ticket filed already with my LexisNexis account login. Checking here with this group if anyone else have seen a similar type of issues and found any solutions. Thanks, Praveen. On Wed, Feb 7, 2018

Re: [MarkLogic Dev General] ML 9 Issues

2018-02-07 Thread Praveen Gontla
I am using 9.0.-4. Yes, have a ticket filed already with my LexisNexis account login. Checking here with this group if anyone else have seen a similar type of issues and found any solutions. Thanks, Praveen. On Wed, Feb 7, 2018 at 2:23 PM, Geert Josten wrote: > Hi Praveen, > > Which version ar

Re: [MarkLogic Dev General] ML 9 Issues

2018-02-07 Thread Geert Josten
Hi Praveen, Which version are you using specifically? If you are not yet using 9.0-4, could you rerun it with that as well? Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Praveen Gontla mailto:praveenkumargontla...@gmail.com>> Reply-To: MarkLogic Developer

Re: [MarkLogic Dev General] Extracting ML Documents to a zip file using Java Client Api ?

2018-02-07 Thread Sam Mefford
I shared an answer in your duplicate SO question, but I'll repeat it here in case it helps anyone. Your onDocumentReady listener is run for each document, so I'm guess

Re: [MarkLogic Dev General] Is there compress option for exportListener in Marklogic Java Client API?

2018-02-06 Thread Sam Mefford
Take a look at ExportToZipJob in ml-javaclient-util and mlExportToZip and mlExportBatchesToZips in ml-gradle. Do those do what you need? If not, cou

Re: [MarkLogic Dev General] archival strategies in bitemporal data

2018-02-05 Thread Serious Guy
Hi All, Sorry for concise. Let me rephrase it. Can you help me to figure out how to move documents from one database to another database. Say I have 10 documents in primary db and want to move the first 5 documents to an empty secondary db to free some space in the primary db. Is there any query

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-02-01 Thread Geert Josten
o: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Date: Thursday, February 1, 2018 at 7:30 AM To: MarkLogic Developer Discussion mailto:general@developer.marklogic.com>> Subject: Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete I think that you a

Re: [MarkLogic Dev General] archival strategies in bitemporal data

2018-02-01 Thread Geert Josten
Hi Swayam, Can you elaborate a little more? There is temporal:document-protect, which takes archiving properties. Is that what you are after? Cheers, Geert From: mailto:general-boun...@developer.marklogic.com>> on behalf of Serious Guy mailto:swakarv...@gmail.com>> Reply-To: MarkLogic Develop

Re: [MarkLogic Dev General] mlcp for multiple host

2018-02-01 Thread Geert Josten
Hi Vikas, You don’t need to specify multiple hosts. MLCP will read out the list of hosts of the cluster automatically through the connect host, and will distribute the load among them. It is essential though that host names as listed inside MarkLogic work as identification on the network too..

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread David Ennis
])/l:precomputedValues -David -- From: on behalf of Lanz Reply-To: MarkLogic Developer Discussion Date: Wednesday, January 31, 2018 at 7:08 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete yes Florent, it returns the doc uri On

Re: [MarkLogic Dev General] mlcp for multiple host

2018-01-31 Thread Sam Mefford
Vikas, I'm sorry I can't answer on MLCPBean. But I think the more supported way to do this is using the Data Movement SDK. Have you looked at that? Sam Mefford Senior Engineer MarkLogic Corporation sam.meff...@marklogic.com Cell: +1

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread Lanz
yes Florent, it returns the doc uri On Wed, Jan 31, 2018 at 6:53 PM, Florent Georges wrote: > Just in case, you can confirm that the node you are about to delete is > indeed from a stored document with something like the following : > > xdmp:log(fn:document-uri(fn:root($node))) > > -- > Florent

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread Florent Georges
Just in case, you can confirm that the node you are about to delete is indeed from a stored document with something like the following : xdmp:log(fn:document-uri(fn:root($node))) -- Florent Georges H2O Consulting http://h2o.consulting/ On 31 Jan 2018 18:47, "Lanz" wrote: > Hi Mister Florent,

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread Lanz
Hi Mister Florent, Thks for your answer. There is no symptom at all: no exception, no specific log, no deletion. When I run the 'real' script on QConsole (or Oxygen connected through xdbc to ML), it returns the focus after a while (whitout SVC-EXTIME) without any deletion. I'm trying with a collea

Re: [MarkLogic Dev General] Strange issue with xdmp:node-delete

2018-01-31 Thread Florent Georges
Salut Lancelot, I might have missed it, but what is the exact symptom? Any error message? Have you tried the "real" script through QConsole? Any chance you simplify it and post it here? More pairs of eyes might catch something you missed... Regards, -- Florent Georges H2O Consulting http://h2o.

Re: [MarkLogic Dev General] Exit query without writing to error log?

2018-01-30 Thread Evan Lenz
et the rest bubble up to that point. > > Regards, > David > > -- > > > *From: * on behalf of Evan Lenz < > e...@evanlenz.net> > *Reply-To: *MarkLogic Developer Discussion com> > *Date: *Thursday, January 25, 2018 at 1:43 AM > *To: *MarkLogic Developer

  1   2   3   4   5   6   7   8   9   10   >