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

2018-03-14 Thread Eliot Kimber
the “&” resulted in a single “;” where the entity reference was (meaning “&xxe;” was not converted to “&xxe;” and then resolved--not actually sure what the unquote processor is doing in that case). Cheers, E. -- Eliot Kimber http://contrext.com From: on behalf of Eliot K

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

2018-03-14 Thread Eliot Kimber
ose rules on what documents are allowed to be loaded and what the constraints on entity resolution are. Cheers, Eliot -- Eliot Kimber http://contrext.com From: on behalf of Keith Breinholt Reply-To: MarkLogic Developer Discussion Date: Wednesday, March 14, 2018 at 12:07

[MarkLogic Dev General] How to Reliably Tell if FlexRep Push is Done

2018-01-31 Thread Eliot Kimber
rofiling showed that most of time came from doing 1000s of small operations down in the flexrep code. I'm wondering if there's a better or more efficient way to determine if flexrep is still in progress? Thanks, E. -- Eliot Kimber http://contrext.com __

[MarkLogic Dev General] Rsync-Like DB Contents Comparison and Update?

2018-01-27 Thread Eliot Kimber
done at the forest level, if one knew what one was doing. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Why Would FlexRep Pull be Dramatically Slower Than Push for Same Database and Server Pair?

2018-01-25 Thread Eliot Kimber
uld be some configuration error on my part (but I don't think so since the target configuration is the same in both cases--the only variable is pull vs push). Cheers, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@

Re: [MarkLogic Dev General] Good Way to Automatical

2018-01-22 Thread Eliot Kimber
for a database. There should be a corresponding single-call function to do it programmatically and the FlexRep docs should make reference to that function at the same time they refer to the manual CPF installation process. Cheers, E. -- Eliot Kimber http://contrext.com On 1/22/18, 5:32 PM,

Re: [MarkLogic Dev General] Good Way to Automatically Install CPF

2018-01-22 Thread Eliot Kimber
t;cut and paste what's in the Admin installer code, fix it to be callable as functions, and use that". Cheers, E. -- Eliot Kimber http://contrext.com On 1/22/18, 4:15 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: Correct subject li

Re: [MarkLogic Dev General] Good Way to Automatically Install CPF

2018-01-22 Thread Eliot Kimber
Correct subject line for this thread. Cheers, E. -- Eliot Kimber http://contrext.com On 1/22/18, 4:09 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I'm putting together a script that will do all the configuration for a server all

[MarkLogic Dev General] Good Way to Automatical

2018-01-22 Thread Eliot Kimber
in the context of setting up new servers on demand, e.g., in a Docker environment where this server has a very narrow use. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your s

Re: [MarkLogic Dev General] General Digest, Vol 162, Issue 17

2017-12-21 Thread Eliot Kimber
immediately I set it aside to pursue other avenues (and in particular, was able to make Flexrep push from ML4 to ML 9 work at appropriate speed, so that’s good). Thanks, E. -- Eliot Kimber http://contrext.com From: on behalf of Rajesh Kumar Reply-To: MarkLogic Developer

Re: [MarkLogic Dev General] Possible to Restore ML 4 Backup To ML 9

2017-12-19 Thread Eliot Kimber
I did not consider using the API. I will try that. Thanks, Eliot -- Eliot Kimber http://contrext.com From: on behalf of Arthur Tsoi Reply-To: MarkLogic Developer Discussion Date: Tuesday, December 19, 2017 at 1:21 PM To: "general@developer.marklogic.com" S

Re: [MarkLogic Dev General] Possible to Restore ML 4 Backup To ML 9

2017-12-19 Thread Eliot Kimber
Just pinging this issue again as being able to do this would make a number of things easier than they would otherwise be. Thanks, Eliot -- Eliot Kimber http://contrext.com On 12/14/17, 3:42 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I

Re: [MarkLogic Dev General] Possible to Flexrep Pull From ML9 to ML4?

2017-12-15 Thread Eliot Kimber
I am able to flexrep push local forests from ML4 to ML 9, so that will let me do what I want by dynamically managing the flexrep config on the master host. Cheers, Eliot -- Eliot Kimber http://contrext.com On 12/14/17, 12:42 PM, "general-boun...@developer.marklogic.com on behalf of

Re: [MarkLogic Dev General] Possible to Restore ML 4 Backup To ML 9

2017-12-14 Thread Eliot Kimber
I also made sure the files are world readable and writeable since I thought at first it might be a permissions problem. Cheers, Eliot -- Eliot Kimber http://contrext.com On 12/14/17, 3:41 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote:

[MarkLogic Dev General] Possible to Restore ML 4 Backup To ML 9

2017-12-14 Thread Eliot Kimber
*h1?5 # _ So I'm assuming this is a version incompatibility. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.c

[MarkLogic Dev General] Possible to Flexrep Pull From ML9 to ML4?

2017-12-14 Thread Eliot Kimber
ng cost if possible. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Best Approach to Manage "Flags" That Might Change Within a Single Transaction

2017-12-07 Thread Eliot Kimber
k and need a way to dynamically communicate within the scope of a single long-running transaction. At least that's the way I would go about building this type of application in a different environment. Cheers, E. -- Eliot Kimber http://contrext.com On 12/7/17, 10:48 AM, &qu

Re: [MarkLogic Dev General] Best Approach to Manage "Flags" That Might Change Within a Single Transaction

2017-12-07 Thread Eliot Kimber
show that, per the docs, a field changed by one app is not seen by a different app. Cheers, Eliot -- Eliot Kimber http://contrext.com On 12/7/17, 10:13 AM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I had not considered server fields--I&

Re: [MarkLogic Dev General] Best Approach to Manage "Flags" That Might Change Within a Single Transaction

2017-12-07 Thread Eliot Kimber
I had not considered server fields--I'll check it out. Cheers, E. -- Eliot Kimber http://contrext.com On 12/7/17, 10:11 AM, "general-boun...@developer.marklogic.com on behalf of Erik Hennum" wrote: Hi, Eliot: Have you considered a server field -- where any co

[MarkLogic Dev General] Best Approach to Manage "Flags" That Might Change Within a Single Transaction

2017-12-07 Thread Eliot Kimber
've missed? Or am I just thinking about the problem the wrong way? Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Error in Typeswitch Syntax Diagram

2017-12-01 Thread Eliot Kimber
In the topic on typeswitch in this doc (ML 9 version): http://docs.marklogic.com/guide/xquery/langoverview#id_75915 The syntax diagram shows a “,” separator for the repeat line for “case” clauses. The comma should not be there. Cheers, Eliot -- Eliot Kimber http://contrext.com

Re: [MarkLogic Dev General] Bug in XSLT and XQuery Reference Guide

2017-11-29 Thread Eliot Kimber
Here’s the code I have: for $map in $details order by map:get($map, 'active') ascending, map:get($map, 'queued') ascending, return $map Cheers, E. -- Eliot Kimber http://contrext.com On 11/29/17, 11:

[MarkLogic Dev General] Bug in XSLT and XQuery Reference Guide

2017-11-29 Thread Eliot Kimber
—that would be useful to have. Cheers, E. -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-28 Thread Eliot Kimber
possible with ML 9 or do I have to use xdmp:set()? Of course I have to do whatever will solve the problem but I like to avoid proprietary extensions whenever possible (otherwise, what’s the point of using standards). Cheers, Eliot -- Eliot Kimber http://contrext.com On 11/28/17, 10:39 AM

Re: [MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-28 Thread Eliot Kimber
update so that no read lock was held outside the updating code. My process is now almost completed for its full 500K+ task set, so memory issues resolved. Now I just need to fix a bug in my queue loading logic and it might just work for production… Cheers, E. -- Eliot Kimber http

Re: [MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-27 Thread Eliot Kimber
deadlocks at a time but the code generally runs. But this does suggest that my code is creating unexpected locks that I need to resolve. Cheers, E. -- Eliot Kimber http://contrext.com On 11/27/17, 11:45 AM, "general-boun...@developer.marklogic.com on behalf of Will Thompson" wrote:

Re: [MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-27 Thread Eliot Kimber
I looks like my deadlock issue is, not surprisingly, my own bug somewhere—the use of xdmp:set on a sequence of elements appears to a red herring. Cheers, E. -- Eliot Kimber http://contrext.com From: on behalf of Eliot Kimber Reply-To: MarkLogic Developer Discussion

Re: [MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-27 Thread Eliot Kimber
unnecessarily complicated. Cheers, E. -- Eliot Kimber http://contrext.com From: on behalf of William Sawyer Reply-To: MarkLogic Developer Discussion Date: Monday, November 27, 2017 at 10:59 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to Do

[MarkLogic Dev General] How to Do Equivalent of While true() Loop In ML?

2017-11-27 Thread Eliot Kimber
the $tasks variable (a sequence of elements) would be causing some kind of commit lock? Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http

[MarkLogic Dev General] Ensuring That Tail Recursion Optimization Will Be Applied

2017-11-11 Thread Eliot Kimber
ensure that my functions are constructed so that tail recursion optimization will be applied? A search on “recursion” or “tail recursion” didn’t reveal anything on the ML docs site. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General

Re: [MarkLogic Dev General] [RESOLVE] Spawned Task Appears to Block Other Threads

2017-11-10 Thread Eliot Kimber
always hard”. Thanks, Eliot -- Eliot Kimber http://contrext.com On 11/10/17, 9:39 AM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: Yes, the client process is started from a Web app, so I think your analysis is correct. I will move th

Re: [MarkLogic Dev General] Spawned Task Appears to Block Other Threads

2017-11-10 Thread Eliot Kimber
Yes, the client process is started from a Web app, so I think your analysis is correct. I will move the response handling to a separate Web app—probably should have done that from the start. Thanks, Eliot -- Eliot Kimber http://contrext.com On 11/9/17, 11:46 PM, "general

[MarkLogic Dev General] Spawned Task Appears to Block Other Threads

2017-11-09 Thread Eliot Kimber
handled as I would expect. My question: Why would the task server task block the other app? There must be something I’m doing or not doing but I have no idea what it might be. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list

Re: [MarkLogic Dev General] [resolved] What Might Cause Documents to Silently Not Be Created?

2017-11-09 Thread Eliot Kimber
-- Eliot Kimber http://contrext.com On 11/9/17, 10:11 AM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I’m actually not doing anything with the HTTP response. I get the response but currently don’t examine it (in fact I have a FIXME in the code to add

Re: [MarkLogic Dev General] What Might Cause Documents to Silently Not Be Created?

2017-11-09 Thread Eliot Kimber
. Eliot Kimber On 11/9/17, 10:00 AM, "general-boun...@developer.marklogic.com on behalf of Will Thompson" wrote: Eliot, When you make the remote HTTP call, are you using one of the xdmp:http-XYZ functions? Since those functions return a payload describing the response con

[MarkLogic Dev General] What Might Cause Documents to Silently Not Be Created?

2017-11-08 Thread Eliot Kimber
-- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] exact match using regex

2017-10-13 Thread Eliot Kimber
resolves to true(). Cheers, Eliot Eliot Kimber http://contrext.com On 10/13/17, 2:41 PM, "general-boun...@developer.marklogic.com on behalf of vikas.sin...@cognizant.com" wrote: Thanks for your reply But metacharacter addition not working it is behaving like

Re: [MarkLogic Dev General] How To Detect Task Time Limit Exceeded Failures?

2017-10-07 Thread Eliot Kimber
In fact, now that I look for it, that’s already happening in my code, I just didn’t realize it. So problem solved. Cheers, E. -- Eliot Kimber http://contrext.com On 10/7/17, 8:18 AM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I can certainly

Re: [MarkLogic Dev General] How To Detect Task Time Limit Exceeded Failures?

2017-10-07 Thread Eliot Kimber
I can certainly experiment with that. Cheers, E. -- Eliot Kimber http://contrext.com On 10/7/17, 7:41 AM, "general-boun...@developer.marklogic.com on behalf of Geert Josten" wrote: Hi Eliot, I heard the other day that it should be possible to capture such timeouts

[MarkLogic Dev General] How To Detect Task Time Limit Exceeded Failures?

2017-10-06 Thread Eliot Kimber
presume that if a task hasn’t finished some time after the configured max time limit that it is presumed to have failed. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your

Re: [MarkLogic Dev General] Trouble with syntax... trying to return XML tree

2017-10-05 Thread Eliot Kimber
when the element type is dynamically determined. Cheers, Eliot -- Eliot Kimber http://contrext.com From: on behalf of Matt Moody Reply-To: MarkLogic Developer Discussion Date: Wednesday, October 4, 2017 at 7:08 PM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev

[MarkLogic Dev General] How To Reflect Specific Timezone in Formatted Date Time?

2017-09-29 Thread Eliot Kimber
e pattern with no change (or simple failure due to a bad pattern). The W3C docs suggest that “[ZN]” should result in just the time zone name but those specs are very difficult to understand so I’m never sure I’m understanding them correctly. Thanks, Eliot -- Eliot Kimber http://co

Re: [MarkLogic Dev General] Apparent Memory Leak in Profiler

2017-09-01 Thread Eliot Kimber
I can verify that ML 8.07 resolves the memory leak in the profiler. I can now profile 100s of 1000s of tasks no problem. Cheers, E. -- Eliot Kimber http://contrext.com On 8/28/17, 1:41 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: Thanks—I

Re: [MarkLogic Dev General] Apparent Memory Leak in Profiler

2017-08-28 Thread Eliot Kimber
Thanks—I should be able to test with latest ML 8 in a couple of days. Cheers, E. -- Eliot Kimber http://contrext.com On 8/28/17, 12:37 PM, "general-boun...@developer.marklogic.com on behalf of Christopher Hamlin" wrote: There was a bug where, under certain circumstances, th

[MarkLogic Dev General] Apparent Memory Leak in Profiler

2017-08-28 Thread Eliot Kimber
issue with caches or something? Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Why No cts:median-aggregate() Function?

2017-08-25 Thread Eliot Kimber
ry slow outliers, so I really need both median and average. This seems like an obvious oversight in the ct:math package—am I missing a solution? Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.markl

Re: [MarkLogic Dev General] Noob query question..

2017-08-24 Thread Eliot Kimber
$max-co-occurrence := for $map in $co-occurrences let $keys := map:keys($map) for $key in $keys return if ($max eq xs:dayTimeDuration(map:get($map, $key)[1])) then map:entry($key, map:get($map, $key)) else () return

Re: [MarkLogic Dev General] Where is General Documentation for the Task Server App?

2017-08-23 Thread Eliot Kimber
I’ll see if I can get MarkLogic server upgraded—does make sense to be on the latest version of ML 8. Cheers, Eliot -- Eliot Kimber http://contrext.com On 8/23/17, 11:25 AM, "general-boun...@developer.marklogic.com on behalf of Geert Josten" wrote: Hi Eliot, Yo

Re: [MarkLogic Dev General] Where is General Documentation for the Task Server App?

2017-08-23 Thread Eliot Kimber
ntaneously restart. Thanks, Eliot -- Eliot Kimber http://contrext.com On 8/23/17, 10:25 AM, "general-boun...@developer.marklogic.com on behalf of Dave Cassel" wrote: I don't believe there's any reason why the Task Server would be triggering a restart (altho

[MarkLogic Dev General] Where is General Documentation for the Task Server App?

2017-08-23 Thread Eliot Kimber
Server is a built-in and prominent part of MarkLogic it seems odd that there’s no general documentation for it, which makes me think I must have missed it. But I both searched the doc set and ToC and scanned the entire Guide ToC and didn’t find anything. Thanks, Eliot -- Eliot Kimber http

Re: [MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-23 Thread Eliot Kimber
uency. Did you pass in an item-frequency facet-option in there too? Kind regards, Geert On 8/22/17, 10:47 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: >If I sum the counts of each bucket calculated using cts:frequenc

Re: [MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-22 Thread Eliot Kimber
If I sum the counts of each bucket calculated using cts:frequency() it matches the total calculated using the initial result from the element-values() query, so I guess the 10,000 count is a side effect of some internal lexicon implementation magic. Cheers, E. -- Eliot Kimber http

Re: [MarkLogic Dev General] Large job processing question.

2017-08-22 Thread Eliot Kimber
then I quickly exhaust RAM. Cheers, E. -- Eliot Kimber http://contrext.com From: on behalf of "Ladner, Eric (Eric.Ladner)" Reply-To: MarkLogic Developer Discussion Date: Tuesday, August 22, 2017 at 3:33 PM To: MarkLogic Developer Discussion Subject: Re: [Mar

Re: [MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-22 Thread Eliot Kimber
y 10,000 *values*--that still seems suspect, but then using those 10,000 values to calculate the total frequency does result in a more likely number. I guess I can do some brute-force querying to see if it’s accurate. Cheers, Eliot -- Eliot Kimber http://contrext.com On 8

Re: [MarkLogic Dev General] Count of cts:element-values() not equal to number of element instances--what's going on?

2017-08-22 Thread Eliot Kimber
then I get the correct count from the sum of cts:frequency(). Cheers, E. -- Eliot Kimber http://contrext.com On 8/14/17, 2:58 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: Using both cts:frequence and cts:count-aggregate I get numbers that are c

[MarkLogic Dev General] Getting Impossible Value from count()--why?

2017-08-22 Thread Eliot Kimber
/appservices/search";> 0.001 Second 0.002 Second 0.003 Second 0.004 Second 0.005 Second … Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Count of cts:element-values() not equal to number of element instances--what's going on?

2017-08-15 Thread Eliot Kimber
/prof:metadata/prof:overall-elapsed count($overall-elapsed[normalize-space(xs:string(.)) eq '']) Cheers, E. -- Eliot Kimber http://contrext.com On 8/15/17, 2:09 AM, "general-boun...@developer.marklogic.com on behalf of Geert Josten" wrote: Wild guess.. Empty prof:overall-el

Re: [MarkLogic Dev General] Count of cts:element-values() not equal to number of element instances--what's going on?

2017-08-14 Thread Eliot Kimber
$dur)) let $count-aggregate := cts:count-aggregate($overall-elapsed-ref,(), cts:collection-query($collection)) Results: 47539 47539 47539 47371 47371 21219 Cheers, E. -- Eliot Kimber http://contrext.com On 8/14/17, 1:53 PM, "general-boun...@developer.marklogic.com on behalf of M

[MarkLogic Dev General] Count of cts:element-values() not equal to number of element instances--what's going on?

2017-08-14 Thread Eliot Kimber
istinct values). Is there a way to do what I want using only indexes? Thanks, E. -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Tracking Spawned Tasks?

2017-08-14 Thread Eliot Kimber
That’s a good point about comments. I’ll try to add comments for things I found lacking and subsequently discover answers to. Cheers, E. -- Eliot Kimber http://contrext.com From: on behalf of Evan Lenz Reply-To: MarkLogic Developer Discussion Date: Monday, August 14, 2017

Re: [MarkLogic Dev General] Tracking Spawned Tasks?

2017-08-14 Thread Eliot Kimber
I like using set-server-field: my requirement feels like just what server fields were intended for. Cheers, E. -- Eliot Kimber http://contrext.com On 8/14/17, 8:32 AM, "general-boun...@developer.marklogic.com on behalf of Erik Hennum" wrote: Hi, Eliot: xdmp:spawn

Re: [MarkLogic Dev General] Tracking Spawned Tasks?

2017-08-14 Thread Eliot Kimber
[general-boun...@developer.marklogic.com] on behalf of Eliot Kimber [ekim...@contrext.com] Sent: Saturday, August 12, 2017 10:15 AM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Tracking Spawned Tasks? Using ML 8 I’m refining a profiling applicatio

[MarkLogic Dev General] Tracking Spawned Tasks?

2017-08-12 Thread Eliot Kimber
parameters to the spawned tasks and then maintain a set of task status docs, but I was hoping there was some something easier. It seems like it would be a common requirement but I couldn’t find anything useful in the ML 8 docs or searching the web. Thanks, Eliot -- Eliot Kimber http://contrext.com

Re: [MarkLogic Dev General] Unexpected Failure Doing Math on Durations (ML 8.0-3.2

2017-08-11 Thread Eliot Kimber
Hmm. Apparently I have to set $div to xs:double. That still seems unnecessary and feels like a bug. Cheers, E. Eliot Kimber On 8/11/17, 10:45 AM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: (ML 8.0-3.2) In my xquery I’m

[MarkLogic Dev General] Unexpected Failure Doing Math on Durations (ML 8.0-3.2

2017-08-11 Thread Eliot Kimber
v * 100: round($div, 2) = Which produces: div: 0.61822806215951597921 $div * 100: 61.822806215951597921 round($div, 2) = 0.62 Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@

Re: [MarkLogic Dev General] Making Collection Facet Work with search:search() (Resolved)

2017-08-07 Thread Eliot Kimber
My element was not in the search namespace. This was a side effect of cutting and pasting from various examples where a default namespace had been set. Hmph. Cheers, E. -- Eliot Kimber http://contrext.com On 8/7/17, 9:55 PM, "general-boun...@developer.marklogic.com on behalf of

Re: [MarkLogic Dev General] Making Collection Facet Work with search:search()

2017-08-07 Thread Eliot Kimber
This is ML 8.0-3.2 Cheers, E. -- Eliot Kimber http://contrext.com On 8/7/17, 9:45 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I’m trying to do a search:search() with two contraints: one for collection and one for a bucketed facet.

[MarkLogic Dev General] Making Collection Facet Work with search:search()

2017-08-07 Thread Eliot Kimber
appservices/search";>trial) (and lots more stack trace items). What is causing this failure and what do I do to resolve it? Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Trying to Get ML Data Visualization Widgets Working

2017-08-07 Thread Eliot Kimber
…. Cheers, E. Eliot Kimber Doer of Things Nobody Else Has Time For On 8/7/17, 3:19 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I was looking at the Google visualization stuff and then found Dave Lee’s paper on using it with MarkLogic, which t

Re: [MarkLogic Dev General] Trying to Get ML Data Visualization Widgets Working

2017-08-07 Thread Eliot Kimber
. I’ll take a look at vis.js—I need easy for this project… Cheers, E. Eliot Kimber Doer of Things Nobody Else Has Tme For On 8/7/17, 3:08 PM, "general-boun...@developer.marklogic.com on behalf of Erik Hennum" wrote: Hi, Eliot: The AppBuilder has been superseded by init

[MarkLogic Dev General] Trying to Get ML Data Visualization Widgets Working

2017-08-07 Thread Eliot Kimber
re but as I’m not at all versed in JavaScript I’m hoping someone can point me in the right direction. I didn’t see anything in the ML guide or the underlying JavaScript code that suggested I’m missing some setup. Thanks, Eliot -- Eliot Kimber http://contrext.com __

[MarkLogic Dev General] Possible to Create Multi-Tagname Range Indexes Using admin Functions?

2017-07-31 Thread Eliot Kimber
gs of element types, so it would be nice to have them grouped under single definitions in the UI for the benefit of people inspecting the configuration. Is what I want to do possible? Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General

Re: [MarkLogic Dev General] Make string XML "safe" in xquery

2017-07-29 Thread Eliot Kimber
If you have the string in one variable then the earlier answer should do what you want: let $str := “This is xml” let $elem as element() := {$str} return $elem Result is: This is <not> xml Cheers, E. Eliot Kimber From: on behalf of Steven Anderson Re

Re: [MarkLogic Dev General] Failure Trying to Restore ML 4.2 Backup to ML 8

2017-07-28 Thread Eliot Kimber
course should work no problem. Cheers, E. -- Eliot Kimber http://contrext.com On 7/27/17, 1:41 PM, "general-boun...@developer.marklogic.com on behalf of Eliot Kimber" wrote: I have a backup from an ML 4.2 database that I’m trying to restore to an ML 8 server. Th

[MarkLogic Dev General] Failure Trying to Restore ML 4.2 Backup to ML 8

2017-07-27 Thread Eliot Kimber
nts.xml file: rsuite02 true 14194071972761628339 /somedir/MarkLogic all false 5211046837612715608 And there is a directory Forests/rsuite02 in the backup. Any idea what would be causing this failure? Thanks, Eliot -- El

Re: [MarkLogic Dev General] Using CURL to Test ML HTTP Processing

2017-06-23 Thread Eliot Kimber
quot;) And get the response I expected (and wanted). Cheers, E. -- Eliot Kimber http://contrext.com On 6/23/17, 9:18 AM, "general-boun...@developer.marklogic.com on behalf of Erik Hennum" wrote: Hi, Eliot: Try specifying the content-type. I believe that, if a

[MarkLogic Dev General] Using CURL to Test ML HTTP Processing

2017-06-22 Thread Eliot Kimber
xt. Which also seems wrong. I must be doing something wrong, either on the CURL side or on the ML side but I can’t figure out what it is. All the examples I could find in the ML docs use direct form submission rather than CURL. Thanks, El

Re: [MarkLogic Dev General] Processing Large Number of Docs to Get Statistics

2017-05-25 Thread Eliot Kimber
Thanks, I’ll take a look. Cheers, E. -- Eliot Kimber http://contrext.com From: on behalf of Gary Vidal Reply-To: MarkLogic Developer Discussion Date: Thursday, May 25, 2017 at 5:37 AM To: Subject: [MarkLogic Dev General] Processing Large Number of Docs to Get

Re: [MarkLogic Dev General] Processing Large Number of Docs to Get Statistics

2017-05-24 Thread Eliot Kimber
esultSequence rs = session.submitRequest(request); ResultItem item = rs.next(); XdmItem xdmItem = item.getItem(); InputStream is = item.asInputStream(); is.eachLine { line -> outfile.append line outfile.append "\n" } session.close(); }

Re: [MarkLogic Dev General] Processing Large Number of Docs to Get Statistics

2017-05-23 Thread Eliot Kimber
I can take a stab at making it work with ML 4. Thanks, Eliot -- Eliot Kimber http://contrext.com On 5/23/17, 8:56 AM, "general-boun...@developer.marklogic.com on behalf of Erik Hennum" wrote: Hi, Eliot: On reflection, let me retract the range index suggestion.

[MarkLogic Dev General] Processing Large Number of Docs to Get Statistics

2017-05-22 Thread Eliot Kimber
s back from a single query request? I think the only solution is to write the results to back to the database and then fetch that as the last thing but I was hoping there was something simpler. Have I missed an obvious solution? Thanks, Eliot -- Eliot Kimber

Re: [MarkLogic Dev General] Docker & Amazon Cloud Support / Marklogic 9

2017-05-17 Thread Eliot Kimber
I run MarkLogic in a container in order to quickly manage development environments where ML is part of a larger environment, e.g., RSuite CMS set ups where I have ML, RSuite, and MySQL each running in a separate container, all managed via docker-compose. Cheers, E. -- Eliot Kimber

Re: [MarkLogic Dev General] Understanding My Profiling Results

2017-05-16 Thread Eliot Kimber
, Eliot -- Eliot Kimber http://contrext.com On 5/16/17, 10:14 AM, "Eliot Kimber" wrote: Apparently I’m an idiot—it was pointed out that the time for the cts:and-query() is just the query constructor, which of course takes no time, so the reported time is the time for the sea

Re: [MarkLogic Dev General] Understanding My Profiling Results

2017-05-16 Thread Eliot Kimber
Apparently I’m an idiot—it was pointed out that the time for the cts:and-query() is just the query constructor, which of course takes no time, so the reported time is the time for the search itself. I can do more testing to see what time each part of the search. Cheers, E. -- Eliot Kimber

Re: [MarkLogic Dev General] Understanding My Profiling Results

2017-05-16 Thread Eliot Kimber
Some more background: there are about 2.5 million MatchingQuery documents in the database I’m testing with. The reverse query index is of course turned on. Cheers, E. -- Eliot Kimber http://contrext.com On 5/15/17, 7:44 PM, "general-boun...@developer.marklogic.com on behalf of Eliot K

[MarkLogic Dev General] Understanding My Profiling Results

2017-05-15 Thread Eliot Kimber
value cache misses (17 misses, 1 hit). I’m not sure what aspect of this query (if any) would hit the value cache. So my question: what are these times telling me about this particular search expression? Thanks, Eliot -- Eliot Kimber

Re: [MarkLogic Dev General] Optimizing Reverse Queries

2017-05-02 Thread Eliot Kimber
enough to go on now to explore a few possible avenues, as well as gather more precise profiling and performance info. Cheers, E. -- Eliot Kimber http://contrext.com On 5/2/17, 1:04 AM, "Jason Hunter" wrote: > By “which query” I mean which of the 125,000 separate query

Re: [MarkLogic Dev General] Optimizing Reverse Queries

2017-05-01 Thread Eliot Kimber
run the 125,000 forward queries and update each element matched as appropriate? Or it may simply be that we need to do some horizontal scaling and invest in additional D-nodes. Cheers, E. -- Eliot Kimber http://contrext.com On 5/1/17, 10:26 PM, "Jason Hunter" wrote: > Ano

Re: [MarkLogic Dev General] Optimizing Reverse Queries

2017-05-01 Thread Eliot Kimber
subelements into fragments would be for other processing. Cheers, Eliot -- Eliot Kimber http://contrext.com On 5/1/17, 9:43 PM, "Jason Hunter" wrote: So what's the performance you're seeing? And what do you expect to be able to see? Something to

Re: [MarkLogic Dev General] Optimizing Reverse Queries

2017-05-01 Thread Eliot Kimber
bottlenecks are then identify possible solutions. It seems unlikely that we’ve done something silly in our queries or ML configuration but I want to eliminate the easy-to-fix before exploring more complicated options. Cheers, Eliot -- Eliot Kimber http://contrext.com On 5/1/17, 12:10 PM

Re: [MarkLogic Dev General] Optimizing Reverse Queries

2017-05-01 Thread Eliot Kimber
(( me:normal-query1(), me:normal-query2(), cts:reverse-query($node))), “unfiltered”) Cheers, E. -- Eliot Kimber http://contrext.com On 5/1/17, 10:31 AM, "Eliot Kimber" wrote: Here is a typical reverse query document. Others may be a bit more complex, for e

Re: [MarkLogic Dev General] Optimizing Reverse Queries

2017-05-01 Thread Eliot Kimber
have to do deeper profiling to see where the time is really being taken—strong possibility that it’s in our code and not really the reverse queries. Cheers, Eliot -- Eliot Kimber http://contrext.com On 5/1/17, 10:00 AM, "Jason Hunter" wrote: On May 1, 2017, at 20:45, E

[MarkLogic Dev General] Optimizing Reverse Queries

2017-05-01 Thread Eliot Kimber
documents, so even a small performance improvement will be significant. Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman

Re: [MarkLogic Dev General] Attempting to Run ML 4 Under CentOs: Can't find libbteuclid.so.6.5.1

2017-04-30 Thread Eliot Kimber
anything away… Cheers, Eliot -- Eliot Kimber http://contrext.com On 4/28/17, 6:01 PM, "Eliot Kimber" wrote: Upgrading this particular RSuite installation is not an option at this time. I’m going to explore installing ML4 on Ubuntu. Cheers,

Re: [MarkLogic Dev General] Attempting to Run ML 4 Under CentOs: Can't find libbteuclid.so.6.5.1

2017-04-28 Thread Eliot Kimber
Upgrading this particular RSuite installation is not an option at this time. I’m going to explore installing ML4 on Ubuntu. Cheers, Eliot -- Eliot Kimber http://contrext.com On 4/28/17, 3:58 PM, "Ganesh Vaideeswaran" wrote: Eliot, MarkLogic 4 does not support CentOS 6. So

Re: [MarkLogic Dev General] Attempting to Run ML 4 Under CentOs: Can't find libbteuclid.so.6.5.1

2017-04-28 Thread Eliot Kimber
I realize that ML4 is not supported. However, the application I’m using (RSuite 3.6.3) requires ML 4 so I need to be able to run it. Cheers, Eliot -- Eliot Kimber http://contrext.com On 4/28/17, 3:29 PM, "Ganesh Vaideeswaran" wrote: Eliot, MarkLogic 4 is not

[MarkLogic Dev General] Attempting to Run ML 4 Under CentOs: Can't find libbteuclid.so.6.5.1

2017-04-28 Thread Eliot Kimber
depends), so I was using the ML 7+ Dockerfile as a base (thus my use of CentOS). Thanks, Eliot -- Eliot Kimber http://contrext.com ___ General mailing list General@developer.marklogic.com Manage your subscription at: http

Re: [MarkLogic Dev General] Determining Whether Whitespace is In Data as Stored or A Result of Serialization?

2011-11-30 Thread Eliot Kimber
nges: > > http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2d > oc/xml/relnotes/chap4.xml%2340996 > > -Danny ** -- Eliot Kimber Senior Solutions Architect "Bringing Strategy, Content, and Technology Together" Main

[MarkLogic Dev General] Determining Whether Whitespace is In Data as Stored or A Result of Serialization?

2011-11-28 Thread Eliot Kimber
mething. 2. If this is in fact a function of serialization options, where would we control that in our Java code that uses Xcc to run XQueries? Is it simply a matter of adding "declare option xdmp:output indent=no;" to our XQuery modules? 3. Is this default serialization behavior changed

Re: [MarkLogic Dev General] Trailing Spaces Removed from Attribute Values--Bug or Feature?

2008-03-12 Thread Eliot Kimber
having anything after the initial "-" or "+" that is not a module/type name pair. Adding a trailing character would be an easy fix but it would still require scrubbing of the data for use by tools outside of MarkLogic. Cheers, Eliot -- Eliot Kimber Senior Solutions Architect

  1   2   >