Re: [MarkLogic Dev General] Replace acting weird?

2012-01-29 Thread Geert Josten
. Not sure if that's what you're looking for. On Jan 29, 2012, at 8:31 PM, Geert Josten wrote: Is it me or is this code not returning what it is supposed to? I'm using Query Console in ML 5.0-2, and it returns just '3A', while I was expecting all from first upto the before $.. let $text

Re: [MarkLogic Dev General] Custom collector producing INFO-INACTIVETICKET errors [solved]

2012-01-27 Thread Geert Josten
Solved, I mistakenly called infodev:ticket-set-status($ticket-id, completed) at the end of the process-file callback. Copy-paste error I guess.. Kind regards, Geert -Oorspronkelijk bericht- Van: Geert Josten [mailto:geert.jos...@dayon.nl] Verzonden: donderdag 26 januari 2012 23:47 Aan

Re: [MarkLogic Dev General] New server not finding namespaces

2012-01-26 Thread Geert Josten
to resolve the local prefix problem. Thanks, Anshu On 25/01/2012 12:53, Anshu Raheja wrote: Thanks for the response. We are using it in the main module and xquery version has been declared as 'xquery version 1.0-ml;'. Regards, Anshu On 25/01/2012 12:45, Geert Josten wrote: Hi Anshu

[MarkLogic Dev General] Search app error searching 'results:detailed s:john'

2012-01-26 Thread Geert Josten
:40.878 Notice: App: in /main.xqy, at 9:0 [1.0] Perhaps worth investigating.. Cheers, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 geert.jos...@dayon.nl www.dayon.nl De informatie - verzonden in of met dit e-mailbericht

Re: [MarkLogic Dev General] Search app error searching 'results:detailed s:john'

2012-01-26 Thread Geert Josten
-Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, January 26, 2012 1:59 PM To: General MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Search app error searching

[MarkLogic Dev General] Custom collector producing INFO-INACTIVETICKET errors

2012-01-26 Thread Geert Josten
be caused by starting transactions while inside one already. Could that be true? Kind regards, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 geert.jos...@dayon.nl www.dayon.nl De informatie - verzonden in of met dit e-mailbericht

Re: [MarkLogic Dev General] Search app error searching 'results:detailed s:john'

2012-01-26 Thread Geert Josten
-Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, January 26, 2012 2:26 PM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Search app error searching

Re: [MarkLogic Dev General] New server not finding namespaces

2012-01-25 Thread Geert Josten
Hi Anshu, It is correct that you need to declare namespaces in your XQuery to address Range indexes that use them. It is because indexes work with qualified names (QNames), so you need both a namespace (uri or prefix bound to uri) and a local name to be able to address the right QName from you

Re: [MarkLogic Dev General] searchable-expression

2012-01-25 Thread Geert Josten
Houghton Mifflin Harcourt, Orlando, FL Office: (407) 345-3420 Cell: (407) 949-4697 The water you touch in the river is the last of that which has passed and the first of that which is coming *--Leonardo da Vinci* *From: *Geert Josten geert.jos...@dayon.nl *Reply-To: *General MarkLogic

Re: [MarkLogic Dev General] Using Information Studio to split uploaded files..

2012-01-24 Thread Geert Josten
splitting easier and better integrated into the product. Justin Justin Makeig Senior Product Manager MarkLogic Corporation justin.mak...@marklogic.com Phone: +1 650 655 2387 www.marklogic.com On Jan 13, 2012, at 6:35 AM, Geert Josten wrote: Hi, Is Information Studio intended to allow

Re: [MarkLogic Dev General] Custom order for facet values

2012-01-24 Thread Geert Josten
Hi Tim, The code below shows you can tweak the facets very easy. I don't expect noticeable time loss either. The effort to change the search library for this might not weigh up against that. Then again, I don't decide on that. Personally I like the idea. Sounds like a quite general use case. So

Re: [MarkLogic Dev General] need help with cts:element-query

2012-01-24 Thread Geert Josten
Hi Gary, You are matching an exact value, why not use cts:element-value-query? You are effectively using cts:word-query wrapped inside a cts:element-query.. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Gary

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

2012-01-23 Thread Geert Josten
Hi Josh, I wrote a bit of code that partly does what Ryan describes below. It is available at github here: https://github.com/grtjn/ml-queue, and should run in ML 4.x.. It allows you to create task objects in your DB, and have them run by a kind of background cron task. It comes with a small

Re: [MarkLogic Dev General] Control on CPF/ Bind cpf with any event

2012-01-19 Thread Geert Josten
Hi Indy, You don’t need to do anything special for that. The Content Processing Framework is designed to automatically act upon Insert, Updates, and Deletes. That is what the Status Change Pipeline takes care of for you. It gets inserted automatically as soon as you activate CPF. All you need

Re: [MarkLogic Dev General] Xquery review tool

2012-01-15 Thread Geert Josten
and best coding practices. For example check if any hardcoded values are there in the xqueries and mark as a violation. We will be able to customize as per our requirements if we have such a basic plugin. Thanks, Arti On Tue, Jan 3, 2012 at 7:49 PM, Geert Josten geert.jos...@dayon.nl wrote: Hi Arti

[MarkLogic Dev General] Using Information Studio to split uploaded files..

2012-01-13 Thread Geert Josten
messages in the errorlog, not sure what they exactly mean, but I can imagine it is because CPF handling is 'violated' or something.. Any suggestions? Kind regards, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 geert.jos

Re: [MarkLogic Dev General] Using Information Studio to split uploaded files..

2012-01-13 Thread Geert Josten
Manager MarkLogic Corporation justin.mak...@marklogic.com Phone: +1 650 655 2387 www.marklogic.com On Jan 13, 2012, at 6:35 AM, Geert Josten wrote: Hi, Is Information Studio intended to allow splitting of uploaded files? If so, what is the best way of handling that? I was experimenting

Re: [MarkLogic Dev General] Using Information Studio to split uploaded files..

2012-01-13 Thread Geert Josten
integrated into the product. Justin Justin Makeig Senior Product Manager MarkLogic Corporation justin.mak...@marklogic.com Phone: +1 650 655 2387 www.marklogic.com On Jan 13, 2012, at 6:35 AM, Geert Josten wrote: Hi, Is Information Studio intended to allow splitting of uploaded files? If so

Re: [MarkLogic Dev General] Range query not returning all fragments?

2012-01-12 Thread Geert Josten
Hi Will, The problem is that the citation query part doesn't match the fragments selected by your searchable path, because - as you rightly state - the citations are in different fragments than your docs . You can cross fragment 'borders' using cts:document-fragment-query

Re: [MarkLogic Dev General] xdmp:keymismatch

2012-01-11 Thread Geert Josten
Hi Mahitha, It might be worth contacting support about this. Does the problem persist after a restart? Which version are you running? How was the document behind “abc.xml” inserted? Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto:

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

2012-01-11 Thread Geert Josten
Are xml attributes indexed by default Hi Jon, You always have the Word index (Word lexicon), which can be explicitly used with cts:element-attribute-word-query (and the element counterpart cts:element-word-query. You will have to enable wildcard switches on the database to use wildcards within

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

2012-01-11 Thread Geert Josten
there is a more efficient way of doing it. I had a quick play with let $results := xinc:node-expand(//bbc:itemMeta/bbc:url[@href=$public_url]) but that just returns the actual url element not the whole document. Thanks Jon On 11/01/2012 13:39, Geert Josten geert.jos...@dayon.nl wrote: Hi Jon, You always

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

2012-01-09 Thread Geert Josten
Hi Hans, It is one of the side-effects of running your XQuery code within MarkLogic Server with version indication '1.0-ml' (which is probably the default in your App Server if you omitted the XQuery Version Declaration). Running your code as '1.0' will also behave as expected, but you would miss

[MarkLogic Dev General] //nr expanded to /decendant::nr ??

2012-01-07 Thread Geert Josten
regards, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 geert.jos...@dayon.nl www.dayon.nl De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Dayon BV en is uitsluitend bestemd voor de geadresseerde. Indien u

Re: [MarkLogic Dev General] //nr expanded to /decendant::nr ??

2012-01-07 Thread Geert Josten
XPaths, I'm sure MarkLogic would love to see it. I'm going back to my weekend now. On Jan 7, 2012, at 1:19 PM, Geert Josten wrote: Hi all, I was using the Query console to profile a simple piece of abbreviated xpath, and my eye was caught by the way it was expanded in the profile details. I

Re: [MarkLogic Dev General] Disable and Enbale Databases in MarkLogic

2012-01-07 Thread Geert Josten
What isn’t real about the Disable button in the Database configuration page in the Admin interface? ;-) Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Clark Richey *Verzonden:* zaterdag 7 januari 2012 14:52

Re: [MarkLogic Dev General] Xquery review tool

2012-01-03 Thread Geert Josten
Hi Arti, What kind of reviewing are you looking for? Code style? Validity? Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Arti Paramanantham *Verzonden:* woensdag 28 december 2011 9:31 *Aan:*

Re: [MarkLogic Dev General] Invalid entity reference ndash

2012-01-03 Thread Geert Josten
Hi John, MarkLogic Server handles DOCTYPE rules only very limited. Only entity declarations in the local subset are parsed and used. References to any external entity or dtd file is ignored. That is why a dtd ref doesn’t work. Ron gave a work-around (I have posted similar code to handle mixed

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

2012-01-03 Thread Geert Josten
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.marklogic.com

Re: [MarkLogic Dev General] Calculated field, search and sorting

2012-01-03 Thread Geert Josten
Hi Matt, Do discounts apply to specific collections of products? And could you divide all products into a reasonable number of collections that way? You could always say something like: (collection1 and discountbucket1) or (collection2 and discountbucket2) or … (using cts:and-query and

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

2012-01-03 Thread Geert Josten
Ryan, Do you recall there was any mentioning of Apache HTTPD by any chance? Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *seme...@hotmail.com *Verzonden:* dinsdag 3 januari 2012 16:56 *Aan:*

Re: [MarkLogic Dev General] Invalid entity reference ndash

2012-01-03 Thread Geert Josten
Hi Dan, It surprised me a bit too. But not sure the XML rec requires XML parsers to support DTD's at all (can't seem to find the relevant section). But MarkLogic Server has very good XML Schema support, so I wouldn't say it doesn't validate at all. It is just focusing on XML Schema instead of DTD

Re: [MarkLogic Dev General] Trying to add a rule to xqdt plug-in

2012-01-03 Thread Geert Josten
Hi Raghu, Not quite sure I understand what you are trying to achieve. Can you elaborate on what you are trying to do? Are you talking about something like the Java imports cleanup of Eclipse, but applied to declarations in an XQuery module? Or is it more like a cleanup of your output? Did

Re: [MarkLogic Dev General] Invalid entity reference ndash

2012-01-03 Thread Geert Josten
Hi Dan, I think that if you search the docs you will see MarkLogic is quite clear about what is supported and what not (you just need to find the right sections ;-). I disagree that the fact that MarkLogic accepts a DOCTYPE should mean it should also use it to validate at read (however simple it

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-22 Thread Geert Josten
( xdmp:document-properties('/test/')) = () xdmp:document-properties('/test/') = () I don't understand why turning off maintain-last-modified is necessary, though. I suspect a bug there. -- Mike On 21 Dec 2011, at 23:35 , Geert Josten wrote: Hi Mike, Interesting thought. That would effectively destroy

[MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Geert Josten
-delete works recursively according to the description.. Kind regards, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 geert.jos...@dayon.nl www.dayon.nl De informatie - verzonden in of met dit e-mailbericht - is afkomstig van

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Geert Josten
december 2011 8:16 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without deleting its docs? I think you can just delete them as if they were documents. Because that's all they are. -jh- On Dec 21, 2011, at 10:53 PM, Geert Josten wrote: Hi, I

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Geert Josten
. The node-delete should delete it, removing the entire fragment. -- Mike On 21 Dec 2011, at 22:53 , Geert Josten wrote: Hi, I uploaded quite a number of docs, but accidentily forgot to turn off automatic directory creation. Can I delete the directory nodes without deleting any documents underneath

Re: [MarkLogic Dev General] ML Error message

2011-12-21 Thread Geert Josten
Might also just be caused by the fact that there *is* a request param named 'database' in the query string, but it happens to be empty. A workaround could be to do the following: xs:unsignedLong((xdmp:get-request-field(database)[. != ], 0)[1]) Not the prettiest, but it should work.. :-/ Kind

Re: [MarkLogic Dev General] Endless DB reindexing after documents update

2011-12-05 Thread Geert Josten
Hi Igor, A db reindex should not be necessary. A reindex is only necessary when you add or change range indexes, word lexicons, fields, and other things like that. Perhaps the reindex was already in progress before you started updating, and got tripped somehow. Try restarting the server, and

Re: [MarkLogic Dev General] Endless DB reindexing after documents update

2011-12-05 Thread Geert Josten
Igor, Database reindexation is never triggered by document changes, only when you add or change index properties. Are you sure it starts *after* doing the document updates? And are you sure it starts automatically? What version of MarkLogic Server are you running by the way? Kind regards, Geert

Re: [MarkLogic Dev General] Endless DB reindexing after documents update

2011-12-05 Thread Geert Josten
It just struck me. Could you have created a perpetual loop? It should not I think, but could do so anyhow. Are you running your code with admin user? Grtz -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Igor

Re: [MarkLogic Dev General] Issue with Mark Logic Query (Michael Blakeley)

2011-12-03 Thread Geert Josten
I think there is more to it. Count forces actual data to be retrieved from the database nodes, while xdmp:estimate uses memory-based indexes. So it can save a lot of latency as well.. Kind regards, Geert -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Privileges to connect xdbc server in MarkLogic Server 4.0

2011-11-30 Thread Geert Josten
Privileges to connect xdbc server in MarkLogic Server 4.0 Hi Mariano, It should be possible to connect with any user, and one with admin role for sure. The name of the admin user may not be ‘admin’ though (any user with admin role will do). Also, make sure you got the password right. Try

Re: [MarkLogic Dev General] Access webservice ???

2011-11-28 Thread Geert Josten
to access the server, you would have at least received a response.. Kind regards, Geert *Van:* mano m [mailto:mano07g...@yahoo.co.in] *Verzonden:* maandag 28 november 2011 10:09 *Aan:* Geert Josten; General MarkLogic Developer Discussion *Onderwerp:* Re: [MarkLogic Dev General] Access webservice

Re: [MarkLogic Dev General] Upgrade from MarkLogic Server 3.2

2011-11-27 Thread Geert Josten
Hi Mariano, MarkLogic Server version 3.2 is way old, and no longer supported afaik. But I am sure Support will provide you with an installer of 3.2-6 if you send a note to supp...@marklogic.com .. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto:

Re: [MarkLogic Dev General] Access webservice ???

2011-11-27 Thread Geert Josten
. Are you sure the url you use is correct? Kind regards, Geert *Van:* mano m [mailto:mano07g...@yahoo.co.in] *Verzonden:* maandag 28 november 2011 7:38 *Aan:* Geert Josten; General MarkLogic Developer Discussion *Onderwerp:* Re: [MarkLogic Dev General] Access webservice ??? Hi all

[MarkLogic Dev General] Markmail down?

2011-11-17 Thread Geert Josten
. They filed a bug for me (#15647), which by the way has been solved (but not released yet). Kind regards, Geert drs. G.P.H. (Geert) Josten Senior Developer Dayon B.V. Delftechpark 37b 2628 XJ Delft T +31 (0)88 26 82 570 geert.jos...@dayon.nl www.dayon.nl De informatie - verzonden in of met dit e

Re: [MarkLogic Dev General] log file too big?!

2011-11-17 Thread Geert Josten
Hi Jakob, Log files *are* rotated.. daily.. :) I am guessing it is a hard-coded limit, all 'in memory' related properties (see database configuration) seem unrelated.. Kind regards, Geert -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com

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

2011-11-17 Thread Geert Josten
Ryan, Not ideal, but you could setup a small servlet running next to ML and call that with a plain GET to make it do the PURGE call.. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *Wayne Feick *Verzonden:*

Re: [MarkLogic Dev General] Joins in search:search or cts:search

2011-11-17 Thread Geert Josten
Hi Lee, Actually, the exists() in your code might be the slowest part of your code. The collection call is likely backed by an index, so quick. The exists works on a sequence however. It could be that it is optimized under the hood to use xdmp:estimate in this case, but not sure. Could try to

Re: [MarkLogic Dev General] Decreased performance afterreindexing database in MarkLogic 3.2

2011-11-14 Thread Geert Josten
RE: [MarkLogic Dev General] Decreased performance afterreindexing database in MarkLogic 3.2 Hi Mariano, I believe the recommended route for such an upgrade would be to upgrade to the latest version within the 3.2 branch first, upgrade from there to the latest within the 4.0 branch, upgrade to

Re: [MarkLogic Dev General] XPath performance in fragementeddocuments

2011-11-14 Thread Geert Josten
:* general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] *On Behalf Of *Geert Josten *Sent:* Friday, November 11, 2011 2:23 PM *To:* General MarkLogic Developer Discussion *Subject:* Re: [MarkLogic Dev General] XPath performance in fragementeddocuments Hi Gary

Re: [MarkLogic Dev General] search:search to return the entire result count

2011-11-11 Thread Geert Josten
The other day I was displaying tweets (stored within ML) unconstrained, unpaged in the browser. Doing so with 50.000 of them made my FireFox browser crash. J (And tweets aren’t even that big! ;-) Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto:

Re: [MarkLogic Dev General] XPath performance in fragemented documents

2011-11-11 Thread Geert Josten
Hi Gary, It might help if you could supply us a bit more of the relevant code, most importantly the cts search itself, and the return of the for-loop. It would also help us understand your problem better if you could explain in more functional terms what you are actually trying to achieve.

Re: [MarkLogic Dev General] xdmp:spawn

2011-11-08 Thread Geert Josten
Hi Mahitha, Yes, there is inherent risk to the usage of xdmp:eval and xdmp:spawn. But that doesn’t necessarily mean you can’t use them safely. Check for the possibility of code injection. Put the eval/spawn within a separate function, add a check for a new privilege, use amps to grant

Re: [MarkLogic Dev General] SVC-MAPBIG: Mapped file too large to map: 5825151760 bytes error

2011-11-04 Thread Geert Josten
Hi John, Might be wise to contact supp...@marklogic.com.. Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto: general-boun...@developer.marklogic.com] *Namens *John Zhong *Verzonden:* vrijdag 4 november 2011 8:33 *Aan:* general@developer.marklogic.com *Onderwerp:*

Re: [MarkLogic Dev General] 500 Internal server error in Marklogic 5.0

2011-11-02 Thread Geert Josten
Hi Srinivasan, Did you use a different user account before to run your application? Are you using application-level authentication? Kind regards, Geert *Van:* general-boun...@developer.marklogic.com [mailto:gene ral-boun...@developer.marklogic.com] *Namens *srinivasan krishnamoorthy

Re: [MarkLogic Dev General] How to get different facet counts for different searchable-expression in Search API

2011-10-18 Thread Geert Josten
Hi Mike, In what way does selecting a different range index influence the counts in this case? I'd say you are still selecting the same doc fragments, so I'd expect the counts to not change at all. Am I overlooking something? Or is the search:search libray really using count, and not the

Re: [MarkLogic Dev General] how to purge the task server queue?

2011-10-16 Thread Geert Josten
Yep, there is a spawn depth, and it is exactly 1000.. Good to know.. ;) Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Geert Josten Verzonden: zaterdag 15 oktober 2011 22:31 Aan: General MarkLogic Developer Discussion Onderwerp: Re

Re: [MarkLogic Dev General] how to purge the task server queue?

2011-10-15 Thread Geert Josten
that behavior could be codified meaningfully? For example: xdmp:interrupt-module ($module-name) that prevent that module from being started until some condition is met (the task server is cleared? the task server has nothing queued with that name?) -Mike On 10/11/2011 12:19 PM, Geert

Re: [MarkLogic Dev General] how to purge the task server queue?

2011-10-15 Thread Geert Josten
that keeps respawning itself, and that'll solve the restart problem. With the respawn approach, you'll eventually run into a limit on the number of respawns (protection against runaway code). On 10/15/2011 08:22 AM, Geert Josten wrote: Nice code, thnx! I couldn't resist the temptation

Re: [MarkLogic Dev General] Sort by issue over element with same name

2011-10-13 Thread Geert Josten
Hi Greg, I am afraid not just using the current functionality of the search:search library, though you could try to post it as RFE. They might think of a way to add it somehow. Another option is to do so yourself with a FLOWR, but that would mean you won't be able to use the pagination

[MarkLogic Dev General] Calling MarkLogic Server locally with http-get

2011-10-12 Thread Geert Josten
port 8000. Actually, to test this I am calling the same port. No luck. Should this in principle work? Kind regards, Geert G.P.H. (Geert) Josten Senior Consultant   Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199   geert.jos...@daidalos.nl

Re: [MarkLogic Dev General] Calling MarkLogic Server locally with http-get

2011-10-12 Thread Geert Josten
to will only accept digest auth, not basic? -- Mike On 12 Oct 2011, at 14:54 , Geert Josten wrote: Hi, I was pretty sure this trick used to work, but now I am getting Unauthorized returned: xdmp:http-get(http://localhost:8000;, options

Re: [MarkLogic Dev General] ML Server Lost Administrator password

2011-10-07 Thread Geert Josten
Hi Jayashree, Sounds like you will have to backup your data, and rerun the MarkLogic Server installer (which I think should preserve your data). But I advise to try to contact supp...@marklogic.commailto:supp...@marklogic.com for starters.. Kind regards, Geert Van:

Re: [MarkLogic Dev General] [xml-dev] JDBC in an XQuery world (?)

2011-10-02 Thread Geert Josten
Hi David, This big problem with ANY api for XQuery would be to re-introduce a separation between application-layer and database-layer, that could equally well be left out. The benefit of a real-life application built in XQuery-only, or perhaps XRX, is that because these layers are much closer

Re: [MarkLogic Dev General] [xml-dev] JDBC in an XQuery world (?)

2011-10-02 Thread Geert Josten
, Geert Josten geert.jos...@daidalos.nlmailto:geert.jos...@daidalos.nl wrote: Hi David, This big problem with ANY api for XQuery would be to re-introduce a separation between application-layer and database-layer, that could equally well be left out. The benefit of a real-life application built

Re: [MarkLogic Dev General] setvalue in XForm

2011-09-30 Thread Geert Josten
Hi Morgan, Actually, your XQuery essentially only contains an xhtml document with xforms. I think the xforms-ready event isn’t working as you would like. I have to ask, why not just put the value inside the instance? I do notice two things that might prevent the action from working: 1.

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

2011-09-28 Thread Geert Josten
Hi Harry, To some extend it certainly does. But the best argument against doing so is probably that MarkLogic Server's security layer doesn't cater this. You could obviously create a security function yourself, with priv's and roles and all, but as pointed out, you could lose all your custom

[MarkLogic Dev General] Will http-get support proxies in ML 5.0 ?

2011-09-22 Thread Geert Josten
Hi, I am once more plagued by running MarkLogic Server behind a proxy and trying to use xdmp:http-get and related functions. Will MarkLogic Server 5.0 support proxy options (server, port, user, pass)? Kind regards, Geert ___ General mailing list

Re: [MarkLogic Dev General] Will http-get support proxies in ML 5.0 ?

2011-09-22 Thread Geert Josten
had any news since, so am definitely interested also! Jakob. On Thu, Sep 22, 2011 at 09:34, Geert Josten geert.jos...@daidalos.nl wrote: Hi, I am once more plagued by running MarkLogic Server behind a proxy and trying to use xdmp:http-get and related functions. Will MarkLogic Server 5.0

Re: [MarkLogic Dev General] Will http-get support proxies in ML 5.0 ?

2011-09-22 Thread Geert Josten
at 10:43 AM, Geert Josten geert.jos...@daidalos.nl wrote: I wouldn't mind it being a general configuration option at host level either, by the way. That should work for most cases I guess.. Kind regards, Geert -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Suggestion/Help for date range in search:search constraint

2011-09-21 Thread Geert Josten
] On Behalf Of Geert Josten Sent: Tuesday, September 20, 2011 2:09 PM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Suggestion/Help for date range in search:search constraint Hi David, You saw my earlier post on how to use the query itself to add dynamically generated

Re: [MarkLogic Dev General] How to effectively pass variables by reference to an xquery function?

2011-09-17 Thread Geert Josten
as a function of the request field name. Any suggestions? Thanks! Tim -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, September 15, 2011 1:19 PM To: General MarkLogic Developer Discussion

Re: [MarkLogic Dev General] How to effectively pass variables by reference to an xquery function?

2011-09-15 Thread Geert Josten
, ... and insert it into the database :) else (), (: populate form :) ) Cool? Tim -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten Sent: Thursday, September 15, 2011 10:54 AM To: General MarkLogic

Re: [MarkLogic Dev General] Remote xqueries via php

2011-09-13 Thread Geert Josten
Hi David, Why not add some monitoring xqueries to one of the HTTP app servers, having them return some sensible output (text, xml or html if you like), and access those with plain http protocol? Kind regards, Geert -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Remote xqueries via php

2011-09-13 Thread Geert Josten
To Geert Josten

Re: [MarkLogic Dev General] Wiki markup parser in XQuery?

2011-09-11 Thread Geert Josten
Hi Ryan, You might be interested in this: http://www.bottlecaps.de/rex/. It takes custom grammars (some examples provided), and can generate a grammar parser for various languages, including XQuery. Kind regards, Geert Van: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Reg: Diacritic-insensitive lexicons

2011-09-08 Thread Geert Josten
Hi Ambika, The cts:frequency function takes only one value. Function mapping may be active, resulting in an implicit flowr loop for each value-match value, making your expression return a sequence of frequencies instead of a single summed frequency count. Function mapping can be very

Re: [MarkLogic Dev General] Try-Catch block

2011-09-08 Thread Geert Josten
Hi Prasanth, Not entirely certain, but the CANCELED exceptions sound like calls to, for instance, an HTTP App Server, which were disconnected from client side before the server finished sending its response. The DISABLED exception sounds like calls to HTTP App Servers that have been disabled

Re: [MarkLogic Dev General] Read only access to Admin interface.....

2011-09-08 Thread Geert Josten
Hi Abhishek, Most pages in the Admin interface are shielded with the sec:check-admin function, which only tolerates current users that have admin role. And users with admin role have always unlimited access to anything. If you only need a small part of the Admin interface functionality, you

Re: [MarkLogic Dev General] Read only access to Admin interface.....

2011-09-08 Thread Geert Josten
/ Experience certainty.IT Services Business Solutions Outsourcing From: Geert Josten geert.jos...@daidalos.nl To: General MarkLogic Developer Discussion general

Re: [MarkLogic Dev General] Read only access to Admin interface.....

2011-09-08 Thread Geert Josten
Just be careful with how you use this. Not something to make publicly available. And it could easily break on next MarkLogic Server update.. Kind regards, Geert Van: Geert Josten Verzonden: donderdag 8 september 2011 16:43 Aan: General MarkLogic Developer Discussion Onderwerp: RE: [MarkLogic

Re: [MarkLogic Dev General] Reg: Diacritic-insensitive lexicons

2011-09-06 Thread Geert Josten
Hi Ambika, The value-match works correctly, but doesn't work the way you want. The match pattern together with the insensitive options causes the value-match function to return both Ánnie and Ànnie, otherwise it would only have matched values starting with Annie (without diacritic). The

Re: [MarkLogic Dev General] Simple way to decide if a user has a role

2011-09-06 Thread Geert Josten
Hi Tim, I think the basic idea of your function is alright. But since you are only interested in the current-user's roles, you might want to use xdmp:get-current-roles in your comparison instead. I haven't checked, but I would expect this function not to depend on privileges.. Kind regards,

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

2011-09-06 Thread Geert Josten
Hi Ryan, Good question! :) I am afraid HTML5 is a bit too new for the current tidy in MarkLogic Server. Let's hope it gets upgraded soon. Meanwhile you could 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

Re: [MarkLogic Dev General] Inconsistent order returned by order by clause

2011-09-01 Thread Geert Josten
Hi Jake, On a side note, you sometimes want to pass result sets around, and process them elsewhere, effectively forcing you to use braces like you mentioned. That would still mess around your order. If the order is important enough, you can enforce ordering by adding the nodes in order to a

Re: [MarkLogic Dev General] MarkLogic and xsltforms (xf:submission)

2011-09-01 Thread Geert Josten
Hi Morgan, You need to keep in mind that xsltforms runs at browser side, so uri to data goes through your MarkLogic HTTP app server first. It means that /test/data.xml will resolve to a file among the modules, and the PUT action won’t update it. You need to put a small xquery in between to

Re: [MarkLogic Dev General] MLS support for whole disk encryption systems

2011-09-01 Thread Geert Josten
Hi Bek, Data files themselves should be already encrypted, but it won't make much sense encrypting the data within the databases itself if it needs to be searchable. There are still some options though. You could encrypt sensitive character data leaving xml structure intact, and you could add

Re: [MarkLogic Dev General] MLS support for whole disk encryption systems

2011-09-01 Thread Geert Josten
Sorry, missed the 'total disk' part.. ;-P -Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Geert Josten Verzonden: donderdag 1 september 2011 20:28 Aan: General MarkLogic Developer Discussion Onderwerp: Re

Re: [MarkLogic Dev General] using cts:search with fragmented doc

2011-08-31 Thread Geert Josten
Hi Gary, You don't need to worry. The searchable expression (the first argument to cts:search) is evaluated differently within a cts:search call. Instead of just evaluating it (actually gathering all data itself), and filtering that result after that, MarkLogic Server calculates which

Re: [MarkLogic Dev General] StackOverflow MarkLogic tag

2011-08-30 Thread Geert Josten
Yeah, great idea: with the option to reply to that email notification as well, to submit an answer.. :-D PS: that is what LinkedIn supports with their group comments; just reply to the notification to add a comment.. :) Van: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] StackOverflow MarkLogic tag

2011-08-29 Thread Geert Josten
+1 for that wish.. Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Jason Hunter Verzonden: maandag 29 augustus 2011 21:53 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] StackOverflow MarkLogic tag On the

Re: [MarkLogic Dev General] Conflicting templates in XSLT

2011-08-27 Thread Geert Josten
Hi Paul, From your description it seems that MarkLogic Server doesn't allow conflicting templates indeed. According to XSLT 1.x and 2.0 it is recoverable, so the parser should continue, but it looks like 2.1 is defining it as non-recoverable. It should be relatively easy to work around this

Re: [MarkLogic Dev General] Facet formation is not AND-ing searhable-expression

2011-08-27 Thread Geert Josten
Hi Abhishek, Not sure I correctly understand what you mean with 'not AND-ing the searchable-expression options'. Can you share your search:seach call with all its options? Kind regards, Geert Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens

Re: [MarkLogic Dev General] Using maps to emulate group by

2011-08-27 Thread Geert Josten
Hi Mike, Nice article with excellent examples. I am experimenting with more complex faceted searching through a collection of tweets just now, which involves quite some grouping and sorting as well. I decided to revert to MarkLogic Server indexes though, since that takes a smaller initial

Re: [MarkLogic Dev General] Using maps to emulate group by

2011-08-27 Thread Geert Josten
there is only one value element: you could use co-occurrences to do the whole thing in one database round-trip. -- Mike On 27 Aug 2011, at 08:54 , Geert Josten wrote: Hi Mike, Nice article with excellent examples. I am experimenting with more complex faceted searching through a collection

Re: [MarkLogic Dev General] Quering documents with fragments

2011-08-11 Thread Geert Josten
Hi Gary, The cts querying part is based on indexes only, so no fragments nor data itself is involved. It is the compilation of the results structure that is causing the problem. To put it simple: you are returning way too many results at once. Start using pagination. Try returning something

Re: [MarkLogic Dev General] Date range constraint a la MarkMail

2011-08-11 Thread Geert Josten
-Oorspronkelijk bericht- Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens Geert Josten Verzonden: woensdag 10 augustus 2011 17:25 Aan: General MarkLogic Developer Discussion (general@developer.marklogic.com) Onderwerp: [MarkLogic Dev

<    4   5   6   7   8   9   10   11   12   13   >