Re: [MarkLogic Dev General] Optimizing XQuery Timeouts

2017-05-30 Thread David Lee
+1 Erik Definitely using the [$start to $end] is not efficient in this case. As noted it requires reading all the values, creating a copy of them ( using a syntax I don't quite get ' || $o1 || ' ) Is this maybe a snippet of a larger expression that generates a string and eval's it ? 1) (

Re: [MarkLogic Dev General] custom Rest rewriter

2017-04-21 Thread David Lee
I also tried this without roxy and it worked fine for application sample uri but didn't work for REST API. when tried calling REST endpoints it was saying empty string as my request and endpoint were not correct. If there is a way that we can achieve this without roxy kindly let me know. >>> [D

Re: [MarkLogic Dev General] custom Rest rewriter

2017-04-19 Thread David Lee
If I understand your architecture correctly, you have 2 'parts' of an app in one context. Is this a JavaScript browser app ? You want your 'ajax' part to 'piggy back' on the credentials the user entered to login ? ( stored in the browser as cookies ) The reference to avoiding passing credent

Re: [MarkLogic Dev General] custom Rest rewriter

2017-04-18 Thread David Lee
The simplest way is to use 2 ports, the 'stock' REST port for rest, and an HTTP port for your app. This allows for the greatest flexibility wrt security, and is generally easier to configure. Sometimes it’s a win wrt networking (don’t expose the port of the REST api app, just expose your port).

Re: [MarkLogic Dev General] json:config for XML schema (David Lee)

2017-04-14 Thread David Lee
>>> ". if you look at the sc:* functions you can parse to get to schema. And >>> then using a few functions to build out the structure you need create a >>> function that does the transformation for you. " >>>I did investigate this approach but it was not feasible in the context of >>>the use

Re: [MarkLogic Dev General] json:config for XML schema

2017-04-13 Thread David Lee
--> the json library was written based on experience from this work: http://www.calldei.com/pubs/Balisage2011/index.html http://www.balisage.net/Proceedings/vol7/html/Lee01/BalisageVol7-Lee01.html However promising, that was a small personal 'research project' not a product -- certainly not effi

Re: [MarkLogic Dev General] How to get the number of records ingested by a MLCP hit

2017-01-12 Thread David Lee
Depending on your use case and scenarios, mlcp is an application layer built on XCC and HDFS libraries, as well as application logic. If you like the feature set of mlcp and just want to call it from java then In would recommend as did Sam to call it as a sub process (Runtime.exec()). I do *no

Re: [MarkLogic Dev General] XML to JSON

2017-01-10 Thread David Lee
Preprocess your XML so that the part you want left as a String in JSON is really string not XML. JSON doesn't know XML so cant just embed it in JSON without encoding it properly. use xdmp:quote() to turn an xml node into a string. ex: (simplified) let $html-part := cell let $to-transform :=

Re: [MarkLogic Dev General] fn:current-dateTime()

2017-01-05 Thread David Lee
This is correct functionality. Within a single XQuery statement fn:current-dateTime will return the same value. This is defined in the W3C XQuery specifications. The specifications do not cover the concept of multiple 'statements' or 'transactions' or spawn/eval/invoke etc -- those are higher l

Re: [MarkLogic Dev General] Json file

2017-01-03 Thread David Lee
In v7 transform-to-json returns a string. Try xdmp:save("file", text { $json }) -DavId Lee Sent from my iPad On Jan 3, 2017, at 5:24 AM, Kapoor, Pragya mailto:pkapo...@innodata.com>> wrote: Hi, I am getting this error: XDMP-ARGTYPE: (err:XPTY0004) xdmp:save("C:\123&qu

Re: [MarkLogic Dev General] xdmp:value

2016-12-29 Thread David Lee
What is the intent of let $str := '$x || $docText' return xdmp:value($str) Instead of simply return $x || $docText ? From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of K

Re: [MarkLogic Dev General] MLCP hit is getting GC overhead limit exceeded exception

2016-12-20 Thread David Lee
look at 4.11.7. Optimizing Ingestion of Large Files in https://docs.marklogic.com/guide/mlcp.pdf#page46 Sent from my iPad On Dec 20, 2016, at 7:58 AM, "rashmiranjan.acha...@cognizant.com" mailto:rashmiranjan.acha...@cognizant.com>> wrote: Hi Team,

Re: [MarkLogic Dev General] Hash of pdf

2016-11-30 Thread David Lee
PDF's are binary xs:string() converts to a string representation which will not be byte for byte identical to the binary -- by far. You can validate easily by returning just xs:string(fn:doc("/binary.pdf")) --> "255044462D312E340A25D3EBE9E10A312030206F626A0A3C3C2F43726561746F7220284D6F7A696C

Re: [MarkLogic Dev General] How to pull data out of marklogic quickly?

2016-10-11 Thread David Lee
Do what you did with the iterator but in parallel in multiple threads, if you can break up the query to produce independent distinct 'streams" that's best, if not, do 1 pass using the query but wrap the whole thing in xdmp:estimate() Take that as a rough approximation and then spawn N Threads (

Re: [MarkLogic Dev General] : Marklogic Integration with DITA OT

2016-08-10 Thread David Lee
If your workflow can be achieved by a pre and post processing step of extracting all data and modules to the filesystem, running DITA then pushing the data back into ML it should be fairly straight forward to integrate. A 'direct' integration is more involved. Note that the standard implem

Re: [MarkLogic Dev General] External variables as element() type

2016-08-09 Thread David Lee
: Re: [MarkLogic Dev General] External variables as element() type Got it. Thanks for your help, David. On Mon, Aug 8, 2016 at 4:53 PM, David Lee mailto:david@marklogic.com>> wrote: Once 'inside' the XQuery side, there is no ambiguity on types of values or variables. You ca

Re: [MarkLogic Dev General] External variables as element() type

2016-08-08 Thread David Lee
Element variables, is there a way to verify from XQuery or MarkLogic that the variable I've created is in fact an Element and not a String? From the feedback above it's unclear if I can trust xdmp:type or getValueType. Thanks, Dave On Sun, Jul 31, 2016 at 1:59 PM, Dave Liepmann mailto:d

Re: [MarkLogic Dev General] External variables as element() type

2016-07-30 Thread David Lee
he new variable is indeed "element()". Is this response trustworthy? Thanks, Dave On Sat, Jul 30, 2016 at 1:47 AM, David Lee mailto:david@marklogic.com>> wrote: Your still sending a 'string' Use this instead. String xmlString = "" InputStrea

Re: [MarkLogic Dev General] External variables as element() type

2016-07-29 Thread David Lee
Your still sending a 'string' Use this instead. String xmlString = "" InputStream is = new ByteArrayInputStream( xmlString.toBytes("UTF-8")); com.marklogic.xcc.types.XdmValue value = ValueFactory.newElement(is); From: general-boun...@developer.marklogic.com [mailto:general-boun...@d

Re: [MarkLogic Dev General] XCC (CORB) over Amazon ELB

2016-07-01 Thread David Lee
For ELB's on AWS there are different types of affinity http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/elb-sticky-sessions.html Try using the Duration based stickiness -- that may help isolate the issue. http://docs.aws.amazon.com/ElasticLoadBalancing/latest/DeveloperGuide/e

Re: [MarkLogic Dev General] Need to copy more thatn 10k files in single transaction

2016-05-10 Thread David Lee
At some scale, one simply cannot do everything in a single 'transaction' ( where 'transaction' refers to the database term). The semantics of a 'database transaction' require more then what is often really needed .. i.e. the 'common usage' of the word "transaction" often meaning "I can undo chan

Re: [MarkLogic Dev General] Copy to clipboard Option

2016-05-02 Thread David Lee
Could you elaborate ? Which "clipboard" are you referring to ? What data or subset would you want copied ? What format ? Where would this be invoked (Client or Server ?) Which API are you referring to ? On the server side there is no 'desktop' or 'clipboard' so there is no 'copy to clipboard' con

Re: [MarkLogic Dev General] Split the XML rewriter file in smaller pieces

2016-03-28 Thread David Lee
The XML rewriter does not support modularization directly. As you mention, you can dynamically build it out of components as part of your deployment process. Some users do this and find it better than a simplest 'xinclude' in that they can do actual 'code generation' ( xslt, XQuery etc) to produ

Re: [MarkLogic Dev General] Issue in creation of HTTP server

2016-03-22 Thread David Lee
When you use the Admin console to create an HTTP server there is no default application or services associated with it, you need to install application code/modes and configure the service. When you use the REST to create a REST API Service, it adds additional application modules including the

Re: [MarkLogic Dev General] xquery streaming

2016-03-08 Thread David Lee
Interesting article, although It is 4 years old and seems to reference observed behavior rather then defined behavior. The Query processor core is continually being improved so YMMV. Your question asked about 'documents being loaded into memory' This may or may not be related to 'stream abilit

Re: [MarkLogic Dev General] Need a suggestion for grouped search

2016-03-04 Thread David Lee
ing to match twice in the above case and each of those partners would return the same result. I'll give that a try, what you suggested below. Thanks. From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklo

Re: [MarkLogic Dev General] Need a suggestion for grouped search

2016-03-04 Thread David Lee
fn:distinct-values doesn't do what you think, It returns a sequence of distinct values, Your if statement will be true for all result sequences that have 1 or more items. As rob mentioned cts search won't return duplicate results ( documents in your query) But the search for thispartner is a

Re: [MarkLogic Dev General] Can we spawn on all hosts in a cluster?

2016-02-25 Thread David Lee
You can use the REST API to discover all hosts in the cluster, then use the REST spawn API to launch tasks ok each one. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of gnanaprakash.bodire...@cognizant.com Sent: Thursday, February 25, 2

Re: [MarkLogic Dev General] Custom JSON objects

2016-02-19 Thread David Lee
This looks to me as a fundamental data model problem. While it 'works' to some extent in JSON, its often problematic to mix attribute *values* with field/element *names*. As in this example "attributes": [ "entities/0C4kKs7/attributes/CountryOfOrigin", ... "entitie

Re: [MarkLogic Dev General] Socket Receive exception

2016-02-16 Thread David Lee
a tweet and sure enough => worked. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com ___ General mailing list General@developer.marklogic.c

Re: [MarkLogic Dev General] Socket Recieve exception

2016-02-15 Thread David Lee
If that helps, a perusal of URL escaping shows that the easiest Way to get your URL paths perfect and more readable and compost lee is to do it I'm two steps. Gather all URL query pairs In a map and URL encode each , join by = The. Join all pairs by & ( careful, & == &, in literal XQuery , And a

Re: [MarkLogic Dev General] ec2 connect issues

2016-02-02 Thread David Lee
Is there an ELB (load balencer) or VPC involved ? If so they have their own set of ACL's Its also conceivable the EC2 instance got updated and iptables changed (or your desktop). Suggest trying to connect form a different client host to eliminate possible local firewalls as a problem. Next I woul

Re: [MarkLogic Dev General] New Install No Admin Role

2016-02-02 Thread David Lee
oun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee Sent: 02 February 2016 15:23 To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] New Install No Admin Role Several likely problems. 1) did you wait a while before going t

Re: [MarkLogic Dev General] New Install No Admin Role

2016-02-02 Thread David Lee
Several likely problems. 1) did you wait a while before going to port 8000 ? ( it takes a bit of time to fulluy config ) 2) Are you using the same user name as you used in CloudFormation ? 3) What CloudFormation template did you use ? From: general-boun...@developer.marklogic.com [mailto:genera

Re: [MarkLogic Dev General] MLCP input query

2016-01-31 Thread David Lee
Since mlcp.bat (and .sh) is simply a small front end to 'java ...' --- essentially this: -- taken from an 8.0 release java -cp "%classpath%" -DCONTENTPUMP_HOME="%LIB_HOME%" -Dfile.encoding="UTF-8" %JVM_OPTS% com.marklogic.contentpump.Cont entPump %* There will always be issues with quot

Re: [MarkLogic Dev General] ARM platform? Be a BIG

2016-01-23 Thread David Lee
When raspberry pi implements docker ( using a x86/64 instruction set) ML might run on that, it would have be a BIG pie ... I haven't followed the pi's lately...what's the biggest and fastest you can get ? (Ram, cpu cores, speed, storage. Networking ) Sent from my iPad David A Lee)) d...@marklo

Re: [MarkLogic Dev General] cts:element-range-query

2016-01-21 Thread David Lee
did From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig Sent: Thursday, January 21, 2016 11:36 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] cts:element-range-query That query will be problematic

Re: [MarkLogic Dev General] Regarding Error

2016-01-20 Thread David Lee
The URL being used in the log looks correct. There are many things that can cause a 400 error in S3 http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html If you enable Cloud Trail you can get more detail information on the root cause https://aws.amazon.com/cloudtrail/ From: genera

Re: [MarkLogic Dev General] JSON transformation problem

2016-01-18 Thread David Lee
When the XML has an associated schema, the type information for atomic values is used to choose the appropriate JSON output. In this case it appears your schema has a numeric type associated with and so its (correctly) converting to a JSON Numeric type. " Note that the second one treated the

Re: [MarkLogic Dev General] Marklogic hosting options?

2016-01-07 Thread David Lee
1) by 'storage' I presume you mean the main database storage ? To do that would require using a network filesystem of some sort (HDFS , NFS, GFS etc) and a remote server cluster hosting the FS. ML does support S3 for native storage but it does not support transaction journaling ( due to limitat

Re: [MarkLogic Dev General] json:transform-to-json() with custom configuration is suppressing some content in XML to JSON transformation

2016-01-02 Thread David Lee
The custom strategy will not work on arbitrary content. The 'full' strategy will. https://docs.marklogic.com/json:config At the expense of much more verbose and 'ugly' Markup. You can specify a set of names in the custom strategy to format as full See: full-element-names A list of XML element

Re: [MarkLogic Dev General] API to get the executing function name and the xquery file

2015-12-31 Thread David Lee
That’s very creative code. I had not considered it before but maybe a function like https://docs.marklogic.com/dbg:stack but only works on the calling request would be useful. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Chris Grim

Re: [MarkLogic Dev General] simple xQuery Web Application

2015-12-08 Thread David Lee
quence. Some XQuery APIs' dont handle sequence results ( or do not using the most basic interface). --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell:

Re: [MarkLogic Dev General] simple xQuery Web Application

2015-12-03 Thread David Lee
ction code -- you can end up selecting elements in unexpected places that you didnt intend. ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogi

Re: [MarkLogic Dev General] Mock marklogic server for writing unit tests

2015-11-29 Thread David Lee
another program' You can then write 'mock' responses to your code. Depending on what your code does and how 'real' the 'mock' needs to be -- it maybe easier to make use of testing frameworks that allow client side mock injection. -------

Re: [MarkLogic Dev General] $counter < i -- I might be overthinking this

2015-11-17 Thread David Lee
very very last resort ... (it shouldn't ever be needed) --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com&l

Re: [MarkLogic Dev General] Redirect declaratively from the XML Rewriter

2015-11-15 Thread David Lee
TxnID=null; path=/ Content-Length: 0 Connection: Keep-Alive Keep-Alive: timeout=5 --- --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622

Re: [MarkLogic Dev General] fn:doc with multiple URIs

2015-10-21 Thread David Lee
.xml ... :) let $xuridoc = fn:doc("filewithuris.xml") return fn:doc( $xuridoc/uris/uri ) - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> Fro

Re: [MarkLogic Dev General] Invalid content RESTAPI-INVALIDCONTENT: (err:FOER0000) - when installing rest-api extension for backups in MarkLogic 7

2015-10-20 Thread David Lee
Is RESTAPI-INVALIDCONTENT The extent of the messaging for syntax errors for installing REST extensions ? Was this error on installing the extension or executing it ? Was there more to it them this ? Which library or SDK did you use ? ( maybe it was dropping details ?) I wouldn't have guessed

Re: [MarkLogic Dev General] cdata-section-elements option doesn't produce CDATA-values

2015-10-20 Thread David Lee
ssing' ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Schouten,

Re: [MarkLogic Dev General] cdata-section-elements option doesn't produce CDATA-values

2015-10-20 Thread David Lee
ars. MLCONNECT=xcc://admin:admin@localhost:8000 import ml=marklogic ml:query 'declare option xdmp:output "cdata-section-elements=myElement" ; text{""}' --- Produces text<fakexml/> --- Now JUST a string ml:query '""' ---> <fakexml/&g

Re: [MarkLogic Dev General] MLCP content transformation between database during ingestion not working

2015-10-16 Thread David Lee
ur. If it does then please open a support case. If this note is in the current documentation I'd like to follow up to see if it should be corrected. ----- David Lee Lead Engineer MarkLogic Corporation d.

Re: [MarkLogic Dev General] bug in xdmp:get-request-field?

2015-10-12 Thread David Lee
tween how path components and query parameters are handled https://docs.marklogic.com/guide/app-dev/XMLrewriter#id_82344 --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-52

Re: [MarkLogic Dev General] XDQP version mismatch between local cluster and foreign cluster

2015-10-08 Thread David Lee
ess in use. Do ps -eaf to check if multiple ML instances are running ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-07 Thread David Lee
is listening on 0.0.0.0. Ernest Gulik From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee Sent: Wednesday, October 07, 2015 4:45 PM To: MarkLogic Developer Disc

Re: [MarkLogic Dev General] Failed to connect to Mark Logic. Invalid connection information. - cqsh with ML7 on Amazon Linux

2015-10-07 Thread David Lee
are you connecting to the elb or the ec2 up? Sent from my iPhone On Oct 7, 2015, at 2:16 PM, Gulik, Ernest mailto:egu...@aha.org>> wrote: Hi All, I’m trying to test cqsh tool with ML7 on Amazon Linux ec2 but for some reason I get invalid connection Error and did try all combinations that I ca

Re: [MarkLogic Dev General] Group module location

2015-09-21 Thread David Lee
your Group Modules Location, for each library make one entry Module Namespace -> "/global-libs/modulename.xqy" Note: 1-5 would be my same suggestion if you were to use "at ..." -- and it would work just as well.

Re: [MarkLogic Dev General] Group module location

2015-09-20 Thread David Lee
-- ( say funtx.xqy ) as like a global system classpath or a 'xml catalog' so your code doesnt have to maintain that -- or care if its a 'built in' or 'addon' libary.' - David Lee Lea

Re: [MarkLogic Dev General] Generate PDF from Marklogic

2015-09-02 Thread David Lee
t hangs around for a while ( in case your load is occasional spikes you can use a simple start-on-demand-but-wait-a-while server) --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-

Re: [MarkLogic Dev General] Generate PDF from Marklogic

2015-09-02 Thread David Lee
ML processing needs. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.m

Re: [MarkLogic Dev General] Marklogic Xquery library for AWS signature version 4

2015-08-19 Thread David Lee
e ML API. There are various tools available to do this such as boto (python) https://github.com/aws/aws-cli/issues/462 --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812

Re: [MarkLogic Dev General] Marklogic Xquery library for AWS signature version 4

2015-08-19 Thread David Lee
ed to make use of the IAM role associated with an EC2 instance ? Is ML on an EC2 instance or remote ? Are you using temporary or federated credentials as your source ? Thanks. ----- David Lee Lead Engineer MarkLogic Cor

Re: [MarkLogic Dev General] Marklogic Xquery library for AWS signature version 4

2015-08-19 Thread David Lee
ent than the current XQuery code in 'ec2-2009-11-30.xqy' , however signing is a bit tedious to get absolutely correct in any language. ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812

Re: [MarkLogic Dev General] Server Message: SVC-EXTIME: xdmp:lock-for-update("/docs/0f04c4fb-6058-4758-92eb-f9cfa2ea18bc") -- Time limit exceeded.

2015-08-18 Thread David Lee
lity to manage exceptions, references etc for you. ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklo

Re: [MarkLogic Dev General] Roles needed to connect to WebDAV app

2015-08-08 Thread David Lee
. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:genera

Re: [MarkLogic Dev General] Return Order - what returns first

2015-08-03 Thread David Lee
Use "," not "|" return ( ... , ... ) --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.co

Re: [MarkLogic Dev General] General Digest, Vol 133, Issue 80

2015-07-30 Thread David Lee
or a web service See: https://docs.marklogic.com/guide/security/recipes#id_22120 ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -

Re: [MarkLogic Dev General] Distributing Tasks

2015-07-30 Thread David Lee
Gert's ml-queue does something similar. Its stores the query in the database and calls xdmp:eval on the query. And this can be done from a scheduled task on every node. Yes that should do the trick. It should be easy to write your own as well. Note that this is no different than deploying th

Re: [MarkLogic Dev General] Distributing Tasks

2015-07-30 Thread David Lee
nywhere you need it without any filesystem magic. With that out of the way, there are a lot more options to work with. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630

Re: [MarkLogic Dev General] Distributing Tasks

2015-07-30 Thread David Lee
out change. ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@develop

Re: [MarkLogic Dev General] Distributing Tasks

2015-07-30 Thread David Lee
batches all at once without running into some kind of locking or scheduling problem ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-

Re: [MarkLogic Dev General] ML 8 Error Handler Non-Execution | Unauthorized User

2015-07-28 Thread David Lee
e Rewriter URL Rewrite Rewriter Evaluator Rewriter Evaluator Verbose Rewriter Invoke Rewriter Parser Rewriter Result Authentication AppRequest Authentication Details ----- Davi

Re: [MarkLogic Dev General] Status 500: REST-INVALIDPARAM: (err:FOER0000) Invalid parameter: No configured options: all

2015-07-10 Thread David Lee
The error messages do not seem to be related Does the time stamp correspond to your SSL test? Can you do a standalone non browser request to the endpoint ? What kind of "REST APP" is this ? The ML REST endpoints themselves do not generate Javascript so some page content must be fetching JavaScri

[MarkLogic Dev General] Target ! cts:atribute-word-query !! Was RE: xml:lang - refinement step 1 - RE: Indexing strategy for attributes when using xdmp:xlst-invoke

2015-06-25 Thread David Lee
Text abc Text def Text def Text def Text abc Text def Text abc Text de

[MarkLogic Dev General] xml:lang - refinement step 1 - RE: Indexing strategy for attributes when using xdmp:xlst-invoke

2015-06-25 Thread David Lee
alse false true false true ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: general-boun...@developer.markl

Re: [MarkLogic Dev General] Indexing strategy for attributes when using xdmp:xlst-invoke

2015-06-25 Thread David Lee
> The docs are pretty clear that the xml:lang affects the language of > the *child text* of elements, The XML spec says : The language specified by xml:lang applies to the element where it is specified (including the values of its attribute

Re: [MarkLogic Dev General] Indexing strategy for attributes when using xdmp:xlst-invoke

2015-06-25 Thread David Lee
de as opposed to empty elements. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com ___ General mailing list

Re: [MarkLogic Dev General] Indexing strategy for attributes when using xdmp:xlst-invoke

2015-06-24 Thread David Lee
of that element, until another xml:lang value is encountered." --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: general-boun...@developer.marklogic.com [mailto:genera

Re: [MarkLogic Dev General] Search and update -- Correction

2015-06-21 Thread David Lee
27; but rather 'not remembering' which API does what -- the result equally confusing. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: David Lee Sent: Sunday, Jun

Re: [MarkLogic Dev General] Search and update

2015-06-21 Thread David Lee
1) See #3 2) Xdmp:node-insert and similar operate in-memory only, so themselves do not cause lock problems because they don’t write the document. See #3 3) Yes, to split up an XQuery program into separate transactions to avoid locking issues, you can use one of the xdmp:eval* or

Re: [MarkLogic Dev General] MarkLogic 7 cloudformation template does not start MarkLogic service

2015-06-19 Thread David Lee
WS to see if there were errors during the startup process. Look at the ASG and CF Event logs. If those don't give you enough clues then write back with what you've found out. --------- David Lee Lead Engineer MarkLogi

Re: [MarkLogic Dev General] Generating Reports in ML

2015-06-19 Thread David Lee
s or look at previous values first :) local:addRow( $data[position() gt 1] , { create-row-from-data( $data[1] ) } ) }; (: creates full document in one expression :) let $doc := { local:addRow( cts:search(...) , () ) } ---

Re: [MarkLogic Dev General] xdmp:value query

2015-06-16 Thread David Lee
ww.ibm.com/developerworks/library/x-javacc1.html http://cmsmcq.com/mib/?p=1260 http://bottlecaps.de/rex/ - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: gener

Re: [MarkLogic Dev General] Using custom json:config from javascript

2015-06-08 Thread David Lee
names'] = xdmp.arrayValues(['foo', 'bar']) ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.ma

Re: [MarkLogic Dev General] How to make ML show x-forwarded-for IP address in ML access logs

2015-06-06 Thread David Lee
rer, and user agent. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] XDMP-PATTERNVALUEMISMATCH: xdmp:parse-dateTime

2015-05-28 Thread David Lee
t; || (if( $d lt 10) then "0" else "") || $d ) Or something similar fromthe functx library - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-63

Re: [MarkLogic Dev General] external auth

2015-05-08 Thread David Lee
the app server. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Cynth

Re: [MarkLogic Dev General] external auth

2015-05-07 Thread David Lee
your using a REST server which is created by the REST APIS' s then you will need to modify the generated rewriter - carefully - so as not to break the existing REST library infrastructure. - David Lee Lea

Re: [MarkLogic Dev General] Dynamic order by (message 4)

2015-05-05 Thread David Lee
fn:error( () , "Unknown element : " , $sort-elem ) / fn:data() * $sort-order return $result/value }; - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: general-bo

Re: [MarkLogic Dev General] json namespace changes in json:transform-from-json($input)

2015-05-04 Thread David Lee
hat you are getting etc. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com]

Re: [MarkLogic Dev General] json namespace changes in json:transform-from-json($input)

2015-05-04 Thread David Lee
e releases, externally managed products and libraries are independently managed by their authors and/or the community (for OS projects). ----- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 81

Re: [MarkLogic Dev General] json namespace changes in json:transform-from-json($input)

2015-05-04 Thread David Lee
between those formats can be very complex to get 100% right. So if you have JSON and using an API that accepts JSON - its much easier and better (and more efficient) to not attempt to transform it to XML. --------- Da

Re: [MarkLogic Dev General] Fragment root configuration

2015-05-02 Thread David Lee
If I am reading this right, a search of 2000 docs with a result set page size of 10 is still slow. ? by ‘small set of 2000 docs’ do you mean that is all you have in the database total ? or does that mean it’s the total result set size from a total DB size of 5mil docs ? Either way This is ve

Re: [MarkLogic Dev General] Fragment root configuration

2015-05-02 Thread David Lee
ify a bottleneck very quickly - that will help you decide how to adjust the query or the indexing or both. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630

Re: [MarkLogic Dev General] Document not visible in WebDAV listing

2015-05-02 Thread David Lee
e, looking at permissions (https://docs.marklogic.com/xdmp:document-get-permissions) Also take a look at the access and error logs on the server. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1

Re: [MarkLogic Dev General] JSON sending in the request body is not being converted into map:map in ML8 using roxy however working fine with ML6

2015-04-28 Thread David Lee
due to the ML8 changes in JSON. Happy to help with any specific questions on the changes to ML APIs. -David --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell:

Re: [MarkLogic Dev General] Error debugging HTTP app server through Oxygen

2015-04-11 Thread David Lee
app/ (the subdir in your Modules) Your good to go. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -Original Message- From: gener

Re: [MarkLogic Dev General] Error debugging HTTP app server through Oxygen

2015-04-11 Thread David Lee
r contact us if they think its a bug in the server. --------- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.co

Re: [MarkLogic Dev General] MLCP - copy database from localhost to virtual server

2015-04-09 Thread David Lee
details. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklog

Re: [MarkLogic Dev General] MLCP - copy database from localhost to virtual server

2015-04-08 Thread David Lee
tname. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andreas Hubmer Sent

  1   2   3   4   5   >