[MarkLogic Dev General] How to query all docs and sort by last-modified property?

2010-08-18 Thread seme...@hotmail.com
I have xml files in the database with the root element of “image”. What I want to do is to use search:search to query all the image elements (no search term) and order them by the last-modified property. Below is what I have tried, but it doesn’t seem to actually be sorting on the last-modi

Re: [MarkLogic Dev General] How to query all docs and sort by last-modified property?

2010-08-18 Thread seme...@hotmail.com
p://marklogic.com/xdmp/property"; name="last-modified"/> return search:search("", $options) -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Wednesday, August 18,

Re: [MarkLogic Dev General] How to query all docs and sort by last-modified property?

2010-08-18 Thread seme...@hotmail.com
ot;", $options) -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Wednesday, August 18, 2010 1:02 PM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] How to query all docs and sort by

Re: [MarkLogic Dev General] How to query all docs and sort by last-modified property?

2010-08-18 Thread seme...@hotmail.com
From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Wednesday, August 18, 2010 3:19 PM To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] How to query all docs and sort by last-modified property?

Re: [MarkLogic Dev General] xpath

2010-10-27 Thread seme...@hotmail.com
You can't use variables as steps in XPath as a way to select a node. If you do this: let $data := let $step := "abc" return $data/r/$step Then the result will just be the string "abc". If you want to dynamically select the node "abc" you'd have to do something like: let $

Re: [MarkLogic Dev General] (no subject)

2010-10-28 Thread seme...@hotmail.com
That error usually means that two updates are being attempted on a document in the same transaction. I looked at the code and I'm not seeing two updates so I'm wondering if maybe two docs are being written with the same URI in the set of documents you are loading? From: pragya_kap...@infosys.

Re: [MarkLogic Dev General] Conflicting updates

2010-10-28 Thread seme...@hotmail.com
. You very much can, however, update the same document multiple times in the same transaction, so long as you're dealing with different parts of the document so that execution order of updates isn't important. Writing the same document multiple times in a transaction would be, as

Re: [MarkLogic Dev General] Conflicting updates

2010-10-28 Thread seme...@hotmail.com
uot;sound" props to "quiet" for the doc) 8. let $doc := Hi let $inserted := xdmp:document-insert("/testdoc.xml", $doc) let $add-props-one := xdmp:document-set-property("/testdoc.xml", red) return () => no conflict (apparently you can add a doc and set props

Re: [MarkLogic Dev General] Inserting node to xml before it is loaded in Marklogic

2010-10-28 Thread seme...@hotmail.com
in-mem-update won't update nodes from the DB. What I have done it create a new node in memory based on the one loaded from the DB. Maybe there's a better, I don't know. Something like this: let $uri := "/aa.xml" let $article-in-db := fn:doc($uri)/pxml:article let $article := element { fn:name(

[MarkLogic Dev General] Question on sessions

2010-10-28 Thread seme...@hotmail.com
Are sessions tied to an instance of MarkLogic server, an Enode, a cluster, or a group? If I have a multi-node cluster, am I going to find that only one node in that cluster has my user's session? If so, is the recommended approach to create a custom session handler by writing session data into

[MarkLogic Dev General] Question on sessions

2010-10-28 Thread seme...@hotmail.com
Are sessions tied to an instance of MarkLogic server, an Enode, a cluster, or a group? If I have a multi-node cluster, am I going to find that only one node in that cluster has my user's session? If so, is the recommended approach to create a custom session handler by writing session data into

Re: [MarkLogic Dev General] Question on sessions

2010-10-28 Thread seme...@hotmail.com
0 13:12:48 -0700 To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] Question on sessions Hi Ryan, On Oct 28, 2010, at 12:48 PM, seme...@hotmail.com wrote:Are sessions tied to an instance of MarkLogic server, an Enode, a cluster, or a group? An E-node. If I have a multi-no

[MarkLogic Dev General] How to get time remaining on document locks

2010-11-18 Thread seme...@hotmail.com
>From the documentation, xdmp:document-locks function returns data that looks >like this: xdmp:document-locks("example.xml") => write exclusive infinity http://example.com/~user

Re: [MarkLogic Dev General] Bubble popup html Vs XQY

2010-11-24 Thread seme...@hotmail.com
Pradeep, I took your code and threw it on my ML server and I get the same behavior whether it's the html page or xqy. Watching it through firebug, there are references like /bubble/jquerybubblepopup-theme/azure/middle-left.png that are throwing 404 errors. I wonder if that's what's causing some

Re: [MarkLogic Dev General] 302 redirect response

2010-11-30 Thread seme...@hotmail.com
Stewart, this has worked for us. Called from a rewriter: declare function local:redirect-from-old-url($new-url) { ("/", xdmp:redirect-response($new-url), xdmp:set-response-code(302, "Found"), xdmp:add-response-header("Location", $new-url)) }; From: nunojobpi...@gmail.com Date: Tue, 30 Nov 2

Re: [MarkLogic Dev General] 302 redirect response

2010-11-30 Thread seme...@hotmail.com
nse-code after the redirect is indeed the solution. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of seme...@hotmail.com Sent: Tuesday, November 30, 2010 3:26 PM To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General

[MarkLogic Dev General] Question about node()

2010-12-01 Thread seme...@hotmail.com
In the XPath spec, it says that "A node test node() is true for any node of any type whatsoever." (http://www.w3.org/TR/xpath/#node-tests). So how come the attribute is not included in the following code: let $example := Hello return {$example/node()} => Hello but it is included in this cod

[MarkLogic Dev General] New Open Source MarkLogic Project: SteamWiki

2011-01-22 Thread seme...@hotmail.com
I'd like to announce that I've started an open source project called SteamWiki (http://steamwiki.sourceforge.net/). >From the project page: "SteamWiki is an open-source, next-generation wiki, repository, and knowledge-discovery system coded in XQuery to be run on MarkLogic Server. Content ca

[MarkLogic Dev General] using XPath with no context

2011-02-09 Thread seme...@hotmail.com
What are the implications of doing: /article vs fn:collection()/article or fn:doc()/article ? Seems like the first one shouldn't be allowed since no context is specified, yet it seems to work. Is that part of the XQuery spec or is that part of the 1.0-ml dialect? (seems so because when I

Re: [MarkLogic Dev General] using XPath with no context

2011-02-09 Thread seme...@hotmail.com
er.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of G. Ken Holman > Sent: Wednesday, February 09, 2011 1:28 PM > To: General MarkLogic Developer Discussion > Subject: Re: [MarkLogic Dev General] using XPath with no context > > At 2011-02-09 14:21 -07

Re: [MarkLogic Dev General] caching server in front of MarkLogic

2011-02-21 Thread seme...@hotmail.com
We use caching appliances in front of our public-facing websites. There are two general approaches: 1) let ML specify the expiration date of the content in the response, which requires logic in the rewriter to set the appropriate headers, and 2) set default cache rules on the cache appliance it

Re: [MarkLogic Dev General] ML 4.2-2 throws error on empty function

2011-02-22 Thread seme...@hotmail.com
I've noticed that an empty function seems to work when the Modules DB is off the filesystem, but throws a syntax error when the Modules DB is an actual DB. > Date: Tue, 22 Feb 2011 10:11:05 -0500 > From: dsew...@virginia.edu > To: general@developer.marklogic.com > Subject: [MarkLogic Dev Genera

[MarkLogic Dev General] tidy is converting the return character to in script tags

2011-02-28 Thread seme...@hotmail.com
...only on windows boxes, but not linux. I don't see any option in tidy to affect this. I am running version 4.2. Is there a switch to enable\disable this? Thanks, Ryan ___ General mailing list General@develope

Re: [MarkLogic Dev General] Node replace without changing its content

2011-04-09 Thread seme...@hotmail.com
There's also functx:change-element-names-deep($nodes, $old-el-names, $new-el-names) http://www.xqueryfunctions.com/xq/functx_change-element-names-deep.html Date: Sat, 9 Apr 2011 08:11:23 -0700 From: wayne.fe...@marklogic.com To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev Gener

Re: [MarkLogic Dev General] File Browser Button

2011-04-12 Thread seme...@hotmail.com
This might work for you: Two files: First file named "upload.xqy" has these contents: let $upload-fieldname := "upload-file" let $doc := xdmp:get-request-field($upload-fieldname) let $filename := xdmp:get-request-field-filename($upload-fieldname) let $saved-uri := ( if ($doc) then

[MarkLogic Dev General] PGP\GPG in MarkLogic?

2011-04-14 Thread seme...@hotmail.com
Anyone have any suggestions about including digital signing or hashing of content created within a MarkLogic application? I realize that I could use a browser plugin or something to create the value if an end user was involved, but I am really looking more towards the MarkLogic app automaticall

[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

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

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

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

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

[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

[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

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

[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] 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?

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

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

[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

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

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

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(

[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] 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] 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/

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

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

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

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

[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"] ~

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

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

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

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

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

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

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

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

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

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

[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

  1   2   >