Re: [MarkLogic Dev General] Creating user with read-only permission

2012-08-31 Thread seme...@hotmail.com
Yeah I'd say the problem is that you conceptually have two roles but technically only have one. If users operate being able to read docs or be able to read and write docs, then you need two roles to support that. Change the permissions on the docs so that x-user can read but only x-admin can

Re: [MarkLogic Dev General] Option to not hit cache

2012-08-22 Thread seme...@hotmail.com
What about setting the amounts for expanded and compressed tree caches to be really small? Would that work? Sent from my iPhone On Aug 22, 2012, at 7:01 AM, "Wayne Feick" wrote: > No, there isn't. Your best bet would be to stop the server, clear OS caching > from memory (e.g. unmount and remo

Re: [MarkLogic Dev General] XPATH vs CTS

2012-06-28 Thread seme...@hotmail.com
Those numbers you posted are really small so you may want to run your queries in large loops to get good averages. If your xpath is simple then the speed is probably going to be the same as with cts. But I suppose xpath could actually be a little slower than path depending on the options you a

Re: [MarkLogic Dev General] How to prevent indexing

2012-06-28 Thread seme...@hotmail.com
Another idea would be to save the doc in the db with a different file extension so ML would automatically treat it as a binary. Or just change the mimetype for HTML in ML to be binary. Sent from my iPhone On Jun 28, 2012, at 10:10 AM, "Michael Blakeley" wrote: > You could keep the documents a

Re: [MarkLogic Dev General] Identifying entities in search phrases

2012-06-13 Thread seme...@hotmail.com
nd anything. > > This could also be a good fit for the semantic library: turn the identified > entities into triples, which is really just a way of canonicalizing them, and > store those triples somewhere in the document. Then the user query still has > to be expressed in a way tha

[MarkLogic Dev General] Identifying entities in search phrases

2012-06-13 Thread seme...@hotmail.com
Does anyone have an elegant (and high performance) way to identify entities in search phrases based on data you have in the DB? For example, if you had data on people in the database and you wanted to match the words with documents in the database. user types in: "Tim Cook visits China" and i

Re: [MarkLogic Dev General] searching docs on how close the match the search phrase

2012-05-25 Thread seme...@hotmail.com
rch. I think it could be helpful, > but you could try both ways. > > One potential downside is that if there are no good matches, you will > probably still match on some stop-words. > > -- Mike > > On 25 May 2012, at 10:07 , seme...@hotmail.com wrote: > > > Ge

[MarkLogic Dev General] searching docs on how close the match the search phrase

2012-05-25 Thread seme...@hotmail.com
Getting docs that have match on a search phrase is easy (using case-, punctuation-, white-space-, insensitive options), and finding docs that have the highest frequency for the words in the search phrase is easy (cts:word-query and a sequence of terms), but I want to find docs that most closel

[MarkLogic Dev General] getting MarkLogic to execute functions in parallel

2012-05-23 Thread seme...@hotmail.com
I have a search function that calls other search functions that are independent of each other. The master search function takes the results of these sub-search functions and compiles and processes them according to some rules. I would like the sub-search functions to all execute in parallel at

Re: [MarkLogic Dev General] SVC-BAD error when attempting to launch config manager or dashboard

2012-05-14 Thread seme...@hotmail.com
Sorry man. I feel like I steered you wrong. Sent from my iPhone On May 14, 2012, at 1:46 PM, "Geert Josten" wrote: > Hi Patrice, > > Did you upgrade from an earlier version, or was it a clean install? And are > you running 64-bit version? > > Kind regards, > Geert > > Van: general-boun..

Re: [MarkLogic Dev General] Need to Remove spaces, punctuations, parens and ect., from the given string (need to remove all character other than A-Z and 0-9)

2012-05-11 Thread seme...@hotmail.com
If you want to convert diacritic chars to non-diacritic you can use xdmp:diacritic-less Sent from my iPhone On May 11, 2012, at 6:50 AM, "Whitby, Rob, Springer Healthcare UK" wrote: > I had to do something similar - try this: > > let $string := "Peña, replaces dia char" > return replace($str

Re: [MarkLogic Dev General] Need to Remove spaces, punctuations, parens and ect., from the given string (need to remove all character other than A-Z and 0-9)

2012-05-11 Thread seme...@hotmail.com
If you want to convert diacritic chars to non-diacritic you can use xdmp:diacritic-less Sent from my iPhone On May 11, 2012, at 6:50 AM, "Whitby, Rob, Springer Healthcare UK" wrote: > I had to do something similar - try this: > > let $string := "Peña, replaces dia char" > return replace($str

Re: [MarkLogic Dev General] How to give hints to MarkLogic on which condition is faster to check first?

2012-04-20 Thread seme...@hotmail.com
on't intersect. Intersecting against long term lists is efficient so there's no need for MarkLogic to short circuit. Your subqueries are resolved to the extent possible by the indexes. -jh- On Apr 20, 2012, at 8:54 PM, seme...@hotmail.com wrote:So could I do : cts:search(/,cts:and-quer

Re: [MarkLogic Dev General] How to give hints to MarkLogic on which condition is faster to check first?

2012-04-20 Thread seme...@hotmail.com
xdmp:sleep and xdmp:elapsed-time. -- Mike On Apr 20, 2012, at 19:15, "seme...@hotmail.com" wrote: I may have some queries where the comparison is expensive. So what I'd like to do is add an extra element in each doc which is a "shortcut" to check for first before doing the

[MarkLogic Dev General] How to give hints to MarkLogic on which condition is faster to check first?

2012-04-20 Thread seme...@hotmail.com
I may have some queries where the comparison is expensive. So what I'd like to do is add an extra element in each doc which is a "shortcut" to check for first before doing the expensive comparison. For example, so suppose I had data that had randoms words ("boat", "alligator", "house") in an el

[MarkLogic Dev General] Possible to coordinate an update across DBs to commit at the same time?

2012-04-18 Thread seme...@hotmail.com
Say I have three databases: A, B, and Modules. I want to be able to deploy changes to all three and have the changes all commit (or become active) at the same time. I may have new config files that only work with the new code going into Modules so I don't want to put the config files in A and t

Re: [MarkLogic Dev General] Retrieving a list of users

2012-04-06 Thread seme...@hotmail.com
Building on what Harry said There's no convenience function in the API do this that I know of, so you'd probably have to just query the Security DB for usernames. Like: xquery version "1.0-ml"; import module namespace sec="http://marklogic.com/xdmp/security"; at "/MarkLogic/securit

[MarkLogic Dev General] Secure Application-to-Application communication

2012-03-17 Thread seme...@hotmail.com
I am looking to set up web services on an app server in one MarkLogic cluster that will be called by another app server in a different MarkLogic cluster. I would like to set it up so that the servers are configured to only accept connections from each other. The connections will not be ad hoc

Re: [MarkLogic Dev General] Time limit exceeded

2012-03-12 Thread seme...@hotmail.com
Came to say what Ron said. You don't want a single process running for 6 hours. You'd have to have extremely long timeout settings (which is dangerous in case something else runs for too long and for locking resources), and if something errored at any time then the entire transaction would be r

[MarkLogic Dev General] xdmp:document-get vs xdmp:extermal-binary

2012-02-14 Thread seme...@hotmail.com
I'm looking for some validation in my understanding of these two functions. Is this correct: 1) xdmp:document-get gets then entire file off of disk and it goes into expanded tree cache 2) xdmp:external-binary gets only the bytes that you specify from the file on disk and those bytes do not go

Re: [MarkLogic Dev General] Optimiziing for several writes

2012-02-06 Thread seme...@hotmail.com
;ll probably want to have 1-2 forests per filesystem, spread out across > multiple block devices, rather than putting everything on one giant > filesystem. Consider avoiding RAID entirely, and using forest replication > instead. If you do use RAID, use RAID-1 and RAID-10. Avoid RAID-5 and RAID

Re: [MarkLogic Dev General] Optimiziing for several writes

2012-02-06 Thread seme...@hotmail.com
se will need to sustain? > > -- Mike > > On 6 Feb 2012, at 13:57 , seme...@hotmail.com wrote: > > > So I've normally dealt with optimizing MarkLogic for few writes but many > > reads. In a situation where there are several writes and fewer reads (as > > with report

[MarkLogic Dev General] Optimiziing for several writes

2012-02-06 Thread seme...@hotmail.com
So I've normally dealt with optimizing MarkLogic for few writes but many reads. In a situation where there are several writes and fewer reads (as with reports on stock ticks for example), are there any pointers or tips for speeding up writes? I can imagine that reducing the number of indexes he

Re: [MarkLogic Dev General] Can't re-install MarkLogic on Mac Lion

2012-01-24 Thread seme...@hotmail.com
Subject: Re: [MarkLogic Dev General] Can't re-install MarkLogic on Mac Lion > > I'm afraid I'm passing on second hand knowledge, so I don't know what to > do if it doesn't work :-(. > > On 23/01/12 20:05, seme...@hotmail.com wro

Re: [MarkLogic Dev General] Task server / priority strategy question

2012-01-23 Thread seme...@hotmail.com
One possibility is to create a job list with priorities and put that list in the DB. Then when the next job processor kicks off it just gets the highest priority job off the list. This means you'd have to have a place to park unprocessed data while it's waiting to be processed. You also may hav

Re: [MarkLogic Dev General] Can't re-install MarkLogic on Mac Lion

2012-01-23 Thread seme...@hotmail.com
rkLogic Dev General] Can't re-install MarkLogic on Mac Lion > > If you want to downgrade MarkLogic (backrev) on OS X, you need to run > this magic command first: > > sudo pkgutil --forget com.marklogic.marklogicServer.postflight.pkg > > John > > On 23/01/12 19

[MarkLogic Dev General] Can't re-install MarkLogic on Mac Lion

2012-01-23 Thread seme...@hotmail.com
A colleague of of mine had ML 4.2 installed on his Macbook with Lion, then he installed ML 5 successfully, then he tried to install 4.2 and got a ("newer version exists on HD" error) so then he tried to uninstall ML 5 and followed the step in the installation doc and it appeared to uninstall su

Re: [MarkLogic Dev General] marklogic and amazon web services

2012-01-20 Thread seme...@hotmail.com
I'm about as big a AWS fanboy as there is. I've used it for several MarkLogic implementations, although not for any high-traffic websites. I've found the performance to be very good. I've used Hi-CPU Extra Large, Large, Small, and Micro. Micro really is too low, but I have used it successfully

Re: [MarkLogic Dev General] Problem connecting to WebDAV server in Windows 7

2012-01-13 Thread seme...@hotmail.com
If there's just one server you can't connect to, then it sounds like something with the config of that server. Are you using a MarkLogic admin user to connect? If not then you need to make sure the directory that you are connecting to has read permissions set on it for your user. And I assume y

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread seme...@hotmail.com
/bar/@* The last step is not searchable. xdmp:plan() says: "Step 4 does not use indexes: @*". But the query will run efficiently, since at index resolution, the query will select only those documents that have as parent of . Evan From: "seme...@hotmail.com" Reply-To: Gen

Re: [MarkLogic Dev General] Are xml attributes indexed by default

2012-01-11 Thread seme...@hotmail.com
/*[itemMeta/url/@href eq $public_url] is fully searchable on MarkLogic 5, but not 4.1 dunno why From: evan.l...@marklogic.com To: general@developer.marklogic.com Date: Wed, 11 Jan 2012 14:36:40 -0800 Subject: Re: [MarkLogic Dev General] Are xml attributes indexed by default Or slightly mor

[MarkLogic Dev General] Possible to use gzip in response from MarkLogic?

2012-01-10 Thread seme...@hotmail.com
...or perhaps even deflate? Would the equivalent be in my code to zip the response on the fly and set the response type accordingly? Of course I'd rather have a server setting. ___ General mailing list General@

Re: [MarkLogic Dev General] sequence type matching - bug (?)

2012-01-10 Thread seme...@hotmail.com
Or Alternative #3: $order/coupon-code/lookup-coupon-code(.) Date: Tue, 10 Jan 2012 21:29:18 + From: hren...@yahoo.de To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] sequence type matching - bug (?) Hi Ron, thank you very much for illustrating the potential useful

Re: [MarkLogic Dev General] Is MarkLogic susceptible to the hash collision attack?

2012-01-03 Thread seme...@hotmail.com
o the hash collision attack? Hi Ryan, Have you tried? (at home preferably ;) Kind regards, Geert Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens seme...@hotmail.com Verzonden: donderdag 29 december 2011 18:16 Aan: general@developer.marklogi

[MarkLogic Dev General] Is MarkLogic susceptible to the hash collision attack?

2011-12-29 Thread seme...@hotmail.com
Quote: Researchers have shown how a flaw that is common to most popular Web programming languages can be used to launch denial-of-service attacks by exploiting hash tables. Announced publicly on Wednesday at the Chaos Communication Congress event in Germany, the flaw affects a long list of te

Re: [MarkLogic Dev General] Anyone impelment a triple store on MarkLogic?

2011-12-20 Thread seme...@hotmail.com
ld get some more details of how it was done. On Mon, Dec 19, 2011 at 12:01 PM, Michael Blakeley wrote: Probably google would turn up https://github.com/marklogic/semantic and https://github.com/marklogic/sparql2xquery - but I don't have much to add to those links. -- Mike On 19

Re: [MarkLogic Dev General] Anyone impelment a triple store on MarkLogic?

2011-12-19 Thread seme...@hotmail.com
ps://github.com/marklogic/sparql2xquery - but I don't have much to add to those links. -- Mike On 19 Dec 2011, at 10:19 , seme...@hotmail.com wrote: > I've heard some discussions about RDF and SPARQL on MarkLogic but I wasn't > really interested in that until now. I hav

[MarkLogic Dev General] Anyone impelment a triple store on MarkLogic?

2011-12-19 Thread seme...@hotmail.com
I've heard some discussions about RDF and SPARQL on MarkLogic but I wasn't really interested in that until now. I haven't come across any actual implementations of a triple store on MarkLogic, but I'm guessing someone has done it. This is a new area that I'm learning about and I'm trying to gua

Re: [MarkLogic Dev General] Setting response headers for downloading file when using filesystem for Modules DB

2011-12-14 Thread seme...@hotmail.com
happen sometimes). -jh- On Dec 13, 2011, at 9:31 AM, seme...@hotmail.com wrote:I think this has come up a few times before, but I couldn't find any discussion on it. Why is it that the following code brings up a download dialog in the browser with the correct filename when I'm using th

[MarkLogic Dev General] Setting response headers for downloading file when using filesystem for Modules DB

2011-12-13 Thread seme...@hotmail.com
I think this has come up a few times before, but I couldn't find any discussion on it. Why is it that the following code brings up a download dialog in the browser with the correct filename when I'm using the Modules DB, but the filename is blank when I am using the filesystem as the Modules d

[MarkLogic Dev General] Number of times expression is evaluated goes up wth declared variables

2011-12-07 Thread seme...@hotmail.com
I have found a situation where the number of times an expression is evaluated is greatly multiplied when the variables are declared in the prolog versus using the "let" keyword. There's something going on here that I just can't figure out. I know the code is a little strange, but it is the si

[MarkLogic Dev General] No Black Friday licensing deals for MarkLogic?

2011-11-25 Thread seme...@hotmail.com
But I waited in line all night :) ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] Large binary linking

2011-11-18 Thread seme...@hotmail.com
I have found that if I load a Large Binary out of the DB and xdmp:document-insert() it to a different uri in the DB, the Large Data usage for the DB doesn't changes and the Large directory in the forest dir doesn't change either. However, if I load the binary from off the file system then the

Re: [MarkLogic Dev General] Possible to send custom HTTP method from MarkLogic?

2011-11-17 Thread seme...@hotmail.com
2011 18:49 Aan: general@developer.marklogic.com Onderwerp: Re: [MarkLogic Dev General] Possible to send custom HTTP method from MarkLogic? No, there is not. On 11/17/2011 09:40 AM, seme...@hotmail.com wrote: Some cache servers like Squid and Varnish allow you to send a cache purge command t

[MarkLogic Dev General] Possible to send custom HTTP method from MarkLogic?

2011-11-17 Thread seme...@hotmail.com
Some cache servers like Squid and Varnish allow you to send a cache purge command to the server using a non-standard HTTP method called PURGE. I see in the MarkLogic docs that there are http methods in xdmp for GET, POST, PUT, HEAD, DELETE and OPTIONS but nothing for PURGE and nothing for a cus

Re: [MarkLogic Dev General] Retrieving file name/document URI of binary content

2011-11-14 Thread seme...@hotmail.com
Try this: Request request = session.newAdhocQuery(" collection('imageCollection')/document-uri(.) "); notice the dot in the document-uri() function From: d...@epocrates.com To: general@developer.marklogic.com Date: Mon, 14 Nov 2011 19:58:07 + Subject: Re: [MarkLogic Dev General] Retrieving

[MarkLogic Dev General] which Amazon Instances would conform to MarkLogic Express license?

2011-11-12 Thread seme...@hotmail.com
I'm trying to match the license requirements (http://developer.marklogic.com/licensing) with the available instances on Amazon (http://aws.amazon.com/ec2/instance-types/). It looks to me that the Large Instance and the High-Memory Extra Large Instance are the only ones that would conform to th

Re: [MarkLogic Dev General] results returning faster when using string instead of integer in predicate

2011-10-21 Thread seme...@hotmail.com
neral-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Thursday, October 20, 2011 10:33 AM To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] results returning faster when using string instead of integer in

Re: [MarkLogic Dev General] results returning faster when using string instead of integer in predicate

2011-10-20 Thread seme...@hotmail.com
r, every @w > must atomize to a numeric type. That seems to be a little more expensive than > atomization to string. > > -- Mike > > On 20 Oct 2011, at 10:21 , seme...@hotmail.com wrote: > > > Given a few thousand XML files in the DB that look like this: > > &

[MarkLogic Dev General] results returning faster when using string instead of integer in predicate

2011-10-20 Thread seme...@hotmail.com
Given a few thousand XML files in the DB that look like this: with no schema being used, I get different speed results depending on whether I use a string or integer value in the predicate: /thing[sizes/size/@w = 123] ~ PT0.031S (average) /thing[sizes/size/@w = "123"] ~

[MarkLogic Dev General] Does MarkLogic support functions declared as external?

2011-10-08 Thread seme...@hotmail.com
I read in the XQuery 1.0 spec that functions can be declared to be external, like variables. For example: declare function do-something($arg1, $arg2) external; Does MarkLogic provide a way to set external functions? The spec says implementations are not required to support this: "An XQuery

Re: [MarkLogic Dev General] Adding custom properties\attributes to users

2011-10-03 Thread seme...@hotmail.com
hem, no? On Sep 27, 2011 1:20 PM, "seme...@hotmail.com" wrote: > > If we want to add custom properties or attributes to a user account in > MarkLogic (beyond username and description), it seems like we have the > following options: > > 1. Put the values in the

[MarkLogic Dev General] Adding custom properties\attributes to users

2011-09-27 Thread seme...@hotmail.com
If we want to add custom properties or attributes to a user account in MarkLogic (beyond username and description), it seems like we have the following options: 1. Put the values in the description field tokenized (Bob | Accounting | 555-1223 | b...@mail.com) 2. Use a separate XML file in the

Re: [MarkLogic Dev General] Possible to create custom audit events?

2011-09-22 Thread seme...@hotmail.com
-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Thursday, September 22, 2011 4:54 PM To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Possible to create custom audit events? But the point of the audit event is to show when an action took place, an

Re: [MarkLogic Dev General] Possible to create custom audit events?

2011-09-22 Thread seme...@hotmail.com
c.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Thursday, September 22, 2011 3:50 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Possible to create custom audit events? Is it possible to create custom audit e

[MarkLogic Dev General] Possible to create custom audit events?

2011-09-22 Thread seme...@hotmail.com
Is it possible to create custom audit events? ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

[MarkLogic Dev General] fn:trace vs xdmp:trace

2011-09-22 Thread seme...@hotmail.com
Any difference besides: 1. Parameters are in different order 2. fn:trace returns the message, xdmp:trace doesn't They seem to have the same functionality and same performance exactly ___ General mailing list Gen

[MarkLogic Dev General] Possible to split one file into many on load in Information Studio?

2011-09-15 Thread seme...@hotmail.com
Suppose I have one large XML that I want to split into separate files when loaded into the database. How can this be done in Information Studio? I see several Transformations but they all seem to be transforming a single doc into another doc, not a one to many transformation. Example: One fil

[MarkLogic Dev General] Wiki markup parser in XQuery?

2011-09-10 Thread seme...@hotmail.com
Anyone know of a Wiki markup parser written in XQuery? Haven't found one from my searching. Thanks, Ryan ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/

Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?

2011-09-06 Thread seme...@hotmail.com
d pass in an input-xml option, but that requires input to be well-formed I guess, and I think it disables several HTML cleanup options as well. Not sure this will work for you.. Kind regards, Geert Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com]

[MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?

2011-09-06 Thread seme...@hotmail.com
With the new doctype and elements that are part of HTML5, how do you get xdmp:tidy() to recognize those in HTML5? If I have an html page that contains something like: blah blah and then try something like: xdmp:tidy(xdmp:document-get("home.html")) I get errors like: is

Re: [MarkLogic Dev General] fn:format-number with fixed trailing 0's padded

2011-09-02 Thread seme...@hotmail.com
It looks like if the last digit in the pad is a zero it is dropped: Note:I added another zero in the number Examples: fn:format-number(43.702402, "#,##0.000") => 43.702 fn:format-number(43.702402, "#,##0.") => 43.7024 fn:format-number(43.702402, "#,##0.0") => 43.7024 fn:format-number(

Re: [MarkLogic Dev General] Sequences for attribute values

2011-08-24 Thread seme...@hotmail.com
Ah. Ok. Thank you. I figured it was for good reason. > To: general@developer.marklogic.com > Date: Wed, 24 Aug 2011 15:47:53 -0700 > From: mary.holst...@marklogic.com > Subject: Re: [MarkLogic Dev General] Sequences for attribute values > > On Wed, 24 Aug 2011 15

[MarkLogic Dev General] Sequences for attribute values

2011-08-24 Thread seme...@hotmail.com
If I'm reading this right, the XQuery 1.0 spec allows zero or one values for an attribute: http://www.w3.org/TR/xquery/#id-computedAttributes [113] CompAttrConstructor ::= "attribute" (QName | ("{" Expr "}")) "{" Expr? "}" But MarkLogic will allow me to use a computed constructor to ma

Re: [MarkLogic Dev General] Querying across multiple documets loaded into a collection

2011-08-18 Thread seme...@hotmail.com
Did you load the documents without the .xml extension? If so, then MarkLogic probably considered the files binary (or possibly text) which would prevent you from using XPath into their structure. From: azega...@audible.com To: general@developer.marklogic.com Date: Thu, 18 Aug 2011 12:16:52 -070

[MarkLogic Dev General] geospatial query always matching all docs

2011-08-13 Thread seme...@hotmail.com
My geospatial circle queries are not matching only points within the circle I am passing in. I have documents in the DB with a "location" parent element with a "lat" child and "long" child. I created a geospatial element pair index on them. But when I try to query for docs that are within a ci

[MarkLogic Dev General] Source for geospatial boundary data?

2011-08-13 Thread seme...@hotmail.com
Anyone know of a good source for boundary data to be used in geospatial searches? Preferably one that can be imported into MarkLogic without a lot of processing. I'm looking for country, state\province, city, zip\postal, neighborhood and anything else of public interest. I've found some throu

[MarkLogic Dev General] Spanish Dictionary file?

2011-08-09 Thread seme...@hotmail.com
On behalf of my friend Jake: ML friends, Are there any MarkLogic-ready Non-English dictionaries available? I'm interested mostly in a Spanish dictionary for use in the spell api (eg, spell:suggest()): http://developer.marklogic.com/pubs/4.1/apidocs/SpellBuiltins.html I see the marvelous Eng

[MarkLogic Dev General] Problems installing MarkLogic 4.2 on Mac Lion

2011-08-01 Thread seme...@hotmail.com
A colleague has installed MarkLogic 4.2 on Lion, but when he goes to start it in Services, it just reverts to "Stopped" and the service fails to start. Nothing in the MarkLogic error logs. Other people are successfully running MarkLogic on Lion but they installed it on Snow Leopard first then u

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread seme...@hotmail.com
gt; e-mail communication by others is strictly prohibited. If you are not the > intended recipient, please notify us immediately by returning this message to > the sender and delete all copies. Thank you for your cooperation. > > ____ > From

Re: [MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread seme...@hotmail.com
1 14:19:32 -0700 To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Cannot apply an update function from a query On Jul 29, 2011, at 2:08 PM, seme...@hotmail.com wrote:Am I going to have to xdmp:eval or xdmp:invoke the function and declare it to be in a separate t

[MarkLogic Dev General] Cannot apply an update function from a query

2011-07-29 Thread seme...@hotmail.com
I was trying to xdmp:apply an xdmp:function and got the error "Cannot apply an update function from a query". I don't really want to change the calling function to an update query because most of the time it will be just a query query. So I'm wondering what my options are. Am I going to have

Re: [MarkLogic Dev General] theoretical or practical limit on number of users\roles?

2011-07-14 Thread seme...@hotmail.com
se with millions of them. You may want to plan > on building a simple UI of your own for that, using the security API. > > -- Mike > > On 14 Jul 2011, at 10:13 , seme...@hotmail.com wrote: > > > Is there a theoretical or practical limit on the number of users or role

[MarkLogic Dev General] theoretical or practical limit on number of users\roles?

2011-07-14 Thread seme...@hotmail.com
Is there a theoretical or practical limit on the number of users or roles there are in the system? As number of users increases, how should the number of Enodes and Dnodes be adjusted, all other things being equal? The system can support millions or documents; can it support millions of users?

[MarkLogic Dev General] Installing custom code under MarkLogic_install_dir/Modules

2011-07-08 Thread seme...@hotmail.com
Background: I'm looking for a way to install code and content on a MarkLogic installation so that it is available to any other application that gets installed. This is more then just including common code, but includes read-only XML files we want to insert into the DB. For example, we may have

[MarkLogic Dev General] bibliographic vs terminology language codes

2011-07-07 Thread seme...@hotmail.com
Twenty-two languages have two three-char language codes each, one of type "bibliographic" and another of type "terminology" and they're different. My two questions: 1. Does MarkLogic care which we use? Anything function differently if we use "chi" instead of "zho"? 2. Is there a recommendation

Re: [MarkLogic Dev General] Net Working Days calculation?

2011-06-16 Thread seme...@hotmail.com
-of($date, $holidays))where not($is-weekend) and not($is-holiday)return$date Kind regards,Geert Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens seme...@hotmail.com Verzonden: donderdag 16 juni 2011 0:32 Aan: general@developer.ma

[MarkLogic Dev General] Net Working Days calculation?

2011-06-15 Thread seme...@hotmail.com
Has anyone done a Net Working Days calculation in XQuery? This would be the number of business days between a start and end date. Holiday inclusion would be awesome. -Ryan ___ General mailing list General@deve

Re: [MarkLogic Dev General] Marklogic database fields over large text

2011-06-14 Thread seme...@hotmail.com
If you use search:search you may have a performance problem with highlighting. We've seen this happen with large text files where MarkLogic could find matching documents really fast but creating the highlight was really slow. This is because it takes time to find the the actual matching text wi

[MarkLogic Dev General] output PDF from MarkLogic?

2011-06-09 Thread seme...@hotmail.com
Is there a library for outputting PDF files from MarkLogic? I found plenty of information about converting PDF to XML, but what about the other way around? Thanks, Ryan ___ General mailing list General@develope

Re: [MarkLogic Dev General] automating initial configuration

2011-06-08 Thread seme...@hotmail.com
The SteamWiki project has some automation that may be helpful. It uses an xML config file to configure forests, dbs, app, roles, and users in MarkLogic. It doesn't install MarkLogic or do anything to the environment. A config file looks like this:

[MarkLogic Dev General] question on server fields

2011-06-06 Thread seme...@hotmail.com
Are server fields tied to a single node? The API doc says: "The server field is available to any App Server on the host via xdmp:get-server-field. " but does that mean if one Enode were to set the value of a server field, will all the other Enodes in the cluster be able to see that value? T

Re: [MarkLogic Dev General] useing WebDAV as a non-admin user

2011-06-06 Thread seme...@hotmail.com
cument-set-permissions or xdmp:document-add-permissions (or when you > create the doc/directory by specifying permission). > > -Danny > > From: general-boun...@developer.marklogic.com > [general-boun...@developer.marklogic.com] On Behalf O

[MarkLogic Dev General] useing WebDAV as a non-admin user

2011-06-04 Thread seme...@hotmail.com
I have never been able to get a non-admin user to be able to use WebDAV, and I have not found a solution online. I have tried adding every role and privilege except for admin and still it doesn't work. It seems like the user must really have the admin role to use WebDAV. Is it the case that non

[MarkLogic Dev General] using fn:not() in queries

2011-05-31 Thread seme...@hotmail.com
I'm hoping someone can validate my understanding. From what I can tell through performance measuring, using fn:not() does not automatically my a query unsearchable (ie, not go against the index). Given XML files in the DB that look like this : Alan where there will always be a child el

Re: [MarkLogic Dev General] Map API Advantage

2011-05-16 Thread seme...@hotmail.com
For what it's worth, I have done similar approaches of having an XML file or files of sort of static configuration like this and I query it at runtime every time. Performance has always been extremely good, even when there are several entries. For example, I have one file that has all the langu

Re: [MarkLogic Dev General] Why is cts:search so much faster than XPath?

2011-05-12 Thread seme...@hotmail.com
rch is always as fast or faster than XPath. I've seen cases where it's the opposite. We work very hard to optimize XPath. And of course you can use cts:query constructs in XPath with cts:contains() so the line between the two tends to blur. -jh- On May 12, 2011, at 8:17 AM, seme...@h

Re: [MarkLogic Dev General] Why is cts:search so much faster than XPath?

2011-05-12 Thread seme...@hotmail.com
line 6: Selected 69 fragments to filter > From: m...@blakeley.com > Date: Thu, 12 May 2011 10:06:45 -0700 > To: general@developer.marklogic.com > Subject: Re: [MarkLogic Dev General] Why is cts:search so much faster than > XPath? > > You can probably see the difference

Re: [MarkLogic Dev General] Why is cts:search so much faster than XPath?

2011-05-12 Thread seme...@hotmail.com
se an index for the query. Moving it to the path statement does. The query looks a little more awkward but it usually performs better. Try it. - Keith From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Thursday, M

Re: [MarkLogic Dev General] Why is cts:search so much faster than XPath?

2011-05-12 Thread seme...@hotmail.com
ter than XPath? > > Equivalent XPath and cts:search expressions should perform the same. Can you > share an example, and what version you are using? > > If they are equivalent and there is a performance difference, then there may > be a bug. > > Kelly > > Message: 5

Re: [MarkLogic Dev General] Why is cts:search so much faster than XPath?

2011-05-12 Thread seme...@hotmail.com
Behalf Of seme...@hotmail.com Sent: Thursday, May 12, 2011 9:05 AM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Why is cts:search so much faster than XPath? I wrote awhile ago that I thought it was usually best to use search:search for full text searching, cts:search for node

[MarkLogic Dev General] Why is cts:search so much faster than XPath?

2011-05-12 Thread seme...@hotmail.com
I wrote awhile ago that I thought it was usually best to use search:search for full text searching, cts:search for node selection out of the db, and XPath for node selection within a document. I just ran into a situation that doing the same query for nodes in the DB using cts:search was 6 times

Re: [MarkLogic Dev General] two or three character language codes?

2011-05-06 Thread seme...@hotmail.com
use three-characters for all? I'm hearing that it should be fine. From: walter.underw...@marklogic.com To: general@developer.marklogic.com Date: Fri, 6 May 2011 10:23:16 -0700 Subject: Re: [MarkLogic Dev General] two or three character language codes? On May 6, 2011, at 9:58 AM,

[MarkLogic Dev General] two or three character language codes?

2011-05-06 Thread seme...@hotmail.com
Does MarkLogic stem words the same if I use xml:lang="en" or xml:lang="eng"? Any reason why I shouldn't just always use three character language codes? Thanks, Ryan ___ General mailing list General@developer.ma

Re: [MarkLogic Dev General] query for search in elements and attributes

2011-05-05 Thread seme...@hotmail.com
Slightly off-topic question: what about when you are searching in-memory elements? Suppose I contructed 100 xml trees in memory that were each 1K (just for example), I put them in a sequence, and then I to use XPath against the sequences of trees to find all values of a particular attribute. No

Re: [MarkLogic Dev General] Reg: Advanced search query formation

2011-05-02 Thread seme...@hotmail.com
Seems like you could get the functionality you want just using the default grammar of search:search. Just make the search phrase be: "test AND test2 OR test 3 AND -test4" By default using "AND" and "OR" in capitals does boolean logic in search:search and the "-" does a "NOT" condition. I'd try

Re: [MarkLogic Dev General] Decimal overflow

2011-04-19 Thread seme...@hotmail.com
me on 4.2. SS From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Tuesday, April 19, 2011 4:53 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Decimal overflow This code: let $d

[MarkLogic Dev General] Decimal overflow

2011-04-19 Thread seme...@hotmail.com
This code: let $d := 5.929411764705882353 return $d * 1000 Gives me this error on MarkLogic 4.2-2: [1.0-ml] XDMP-DECOVRFLW: (err:FOAR0002) let $d := 5.929411764705882353 return $d * 1000 -- Decimal overflow Is there some easy way around this? thanks, Ryan

Re: [MarkLogic Dev General] Multipart HTTP POST

2011-04-18 Thread seme...@hotmail.com
This may not be exactly what you are looking for, but what I have done with some REST interfaces is actually include the binary data in a single XML file that is being posted. Below is an example of loading an image off the filesystem, converting it to Base64 and including it in a JSON structu

[MarkLogic Dev General] Bug in in-mem-update

2011-04-14 Thread seme...@hotmail.com
The following code throws this error: [1.0] XDMP-ATTRSEQ: (err:XQTY0024) $node/@* -- Attribute node cannot follow non-attribute node in element content: xquery version '1.0-ml'; import module namespace mem = "http://xqdev.com/in-mem-update"; at "/MarkLogic/appservices/utils/in-mem-update.xqy

  1   2   >