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. >>>

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

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

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

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

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

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

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 <pkapo...@innodata.com<mailto:pkapo...@innodata.com>> wrote: Hi, I am getting this error: XDMP-ARGTYPE: (err:XPTY0

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

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"

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")) -->

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

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

2016-08-09 Thread David Lee
ral@developer.marklogic.com> Subject: 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 <david@marklogic.com<mailto:david@marklogic.com>> wrote: Once 'inside' the XQuery side, the

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

2016-08-08 Thread David Lee
o:dave.liepm...@gmail.com>> wrote: On Sat, Jul 30, 2016 at 3:35 PM, David Lee <david@marklogic.com<mailto:david@marklogic.com>> wrote: You need to use ValueFactory.newElement to create Elements, it will not be done for you in this method. Right, that was what I expected

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

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

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

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.

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

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'

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

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

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

2016-03-04 Thread David Lee
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.marklogic.com] On Behalf Of David

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

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,

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", ...

Re: [MarkLogic Dev General] Socket Receive exception

2016-02-16 Thread David Lee
eet 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.com Ma

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

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

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

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

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))

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]

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:

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

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

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

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

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: +1

Re: [MarkLogic Dev General] simple xQuery Web Application

2015-12-03 Thread David Lee
-- 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.marklogic.com<h

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

2015-11-29 Thread David Lee
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. - David Lee Lead

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<htt

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

2015-11-15 Thread David Lee
Keep-Alive: timeout=5 --- - 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

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] cdata-section-elements option doesn't produce CDATA-values

2015-10-20 Thread David Lee
alhost:8000 import ml=marklogic ml:query 'declare option xdmp:output "cdata-section-elements=myElement" ; text{""}' --- Produces textfakexml/ --- Now JUST a string ml:query '""' ---> fakexml/ vs --- - ml:query -t '""' ---> ---

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

2015-10-20 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:general-boun...@developer.marklogic.com] On Behalf Of Schouten, Edgar J.

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] MLCP content transformation between database during ingestion not working

2015-10-16 Thread David Lee
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...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-6

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

2015-10-12 Thread David Lee
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-5224 Cell: +1 81

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
rough ELB since daemon 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 De

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 > 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

Re: [MarkLogic Dev General] Group module location

2015-09-20 Thread David Lee
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 Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cel

Re: [MarkLogic Dev General] Generate PDF from Marklogic

2015-09-02 Thread David Lee
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-5224 Cell: +1

Re: [MarkLogic Dev General] Generate PDF from Marklogic

2015-09-02 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:general-boun...@developer.marklogic.com] On

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

2015-08-19 Thread David Lee
-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-482-5224 Cell: +1 812-630-7622

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

2015-08-19 Thread David Lee
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 Corporation d

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

2015-08-19 Thread David Lee
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-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com

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
. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com

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.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun

Re: [MarkLogic Dev General] Distributing Tasks

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

Re: [MarkLogic Dev General] Distributing Tasks

2015-07-30 Thread David Lee
- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf

Re: [MarkLogic Dev General] Distributing Tasks

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

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

2015-07-30 Thread David Lee
://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 -Original Message- From

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

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

2015-07-28 Thread David Lee
/event-id event-idRewriter Result/event-id Authentication event-idAppRequest Authentication Details/event-id - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812

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

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

2015-06-25 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 ___ General mailing list General@developer.marklogic.com Manage

[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
=/test/foo6 foo-def bar xml:lang=de type=defText def/bar /foo-def /result /results /all - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622

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

2015-06-24 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 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Wednesday

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*

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

2015-06-21 Thread David Lee
. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com/ From: David Lee Sent: Sunday, June 21, 2015 9:59 AM To: MarkLogic Developer Discussion Subject: RE: [MarkLogic Dev General] Search and update 1

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

2015-06-19 Thread David Lee
. 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 MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1

Re: [MarkLogic Dev General] Generating Reports in ML

2015-06-19 Thread David Lee
( $data[1] ) }/row ) }; (: creates full document in one expression :) let $doc := doc{ local:addRow( cts:search(...) , () ) } /doc - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482

Re: [MarkLogic Dev General] xdmp:value query

2015-06-16 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 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun

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

2015-06-08 Thread David Lee
'] = 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.comhttp://www.marklogic.com/ From: general-boun

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

2015-06-06 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 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun

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

2015-05-28 Thread David Lee
- David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny

Re: [MarkLogic Dev General] external auth

2015-05-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.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Cynthia Jiang Sent: Friday, May

Re: [MarkLogic Dev General] external auth

2015-05-07 Thread David Lee
- carefully - so as not to break the existing REST library infrastructure. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com

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

2015-05-05 Thread David Lee
( () , 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

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

2015-05-04 Thread David Lee
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. - David Lee Lead Engineer MarkLogic Corporation d

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

2015-05-04 Thread David Lee
, 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 812-482-5224

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

2015-05-04 Thread David Lee
. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf

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

2015-05-02 Thread David Lee
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 812-482-5224 Cell

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

Re: [MarkLogic Dev General] Fragment root configuration

2015-05-02 Thread David Lee
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-7622

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
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: +1 812-630-7622

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

2015-04-11 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 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun

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

2015-04-11 Thread David Lee
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.comhttp://www.marklogic.com/ From: general-boun

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

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

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

2015-04-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.comhttp://www.marklogic.com/ From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andreas Hubmer Sent: Wednesday

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

2015-04-08 Thread David Lee
a load balencer etc then it may make a difference. As much specifics of your server config, mlcp config and network topology would help. - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482

Re: [MarkLogic Dev General] Unable to Start MarkLogic on CentOS

2015-03-30 Thread David Lee
structure is copied. Check for this file ls -l /opt/MarkLogic/mlcmd/bin/is-ec2.sh And make sure its r+x for root - David Lee Lead Engineer MarkLogic Corporation d...@marklogic.com Phone: +1 812-482-5224 Cell: +1

Re: [MarkLogic Dev General] Suggestions for data masking

2015-03-24 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 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf

Re: [MarkLogic Dev General] ML8 404 Error

2015-03-22 Thread David Lee
Internal trace events are not publicly documented, they are intended for internal debugging and support assistance. There's no guarantee they will be maintained or what the behavior will be. - David Lee Lead Engineer

Re: [MarkLogic Dev General] Constructing JSON objects

2015-03-12 Thread David Lee
Making an XQuery function to call the explicit constructor with variable key names or number of keys is not possible directly There isn't the equivalent of map:entry , field names are constant expressions and the number of fields is constant, unlike element {}{} You would have to resort to

Re: [MarkLogic Dev General] What are the best practices for securing a Public ROXY REST Extension?

2015-02-24 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 -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael

  1   2   3   4   >