Re: [MarkLogic Dev General] S3 and xdmp:external-binary

2014-05-20 Thread Danny Sokolsky
Hi David, What version are you running (the output of xdmp:version() )? And what is the exact error you are seeing? Thanks, -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Ennis Sent: Tuesday, May 20, 2014 3:54 PM To:

Re: [MarkLogic Dev General] Browsing directories

2014-05-19 Thread Danny Sokolsky
Hi Florent, Is this what you are looking for: http://docs.marklogic.com/guide/app-dev/properties#id_58787 ? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Monday, May 19, 2014 11:59 AM To: MarkLogic

Re: [MarkLogic Dev General] Search attribute as Whole word

2014-05-18 Thread Danny Sokolsky
Another possibility is to set up a path field on doc/@id and set up custom tokenization on that field so that . is a word token instead of a punctuation token. Then you can do a field word query on it and it will behave the way you want it to. -Danny From:

Re: [MarkLogic Dev General] Directory creation set to manual. ML creates anyway?

2014-05-13 Thread Danny Sokolsky
And xdmp:directory does not return directories, it returns documents in a directory (a URI that ends in a “/”). -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Jakob Fix Sent: Tuesday, May 13, 2014 7:40 AM To: Florent Georges;

Re: [MarkLogic Dev General] XSLTForms Exception

2014-05-05 Thread Danny Sokolsky
Are you using IE? If so, try it with firefox or chrome, or try using IE in compatibility mode. There are some known issues with App Builder and Internet Explorer. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan

Re: [MarkLogic Dev General] Function sem:rdf-load() not defined?

2014-04-22 Thread Danny Sokolsky
Hi Florent, Did you import the library: import module namespace sem = http://marklogic.com/semantics; at /MarkLogic/semantics.xqy; ? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Tuesday, April

Re: [MarkLogic Dev General] ML 4.2 backup restore to ML 7.x

2014-03-29 Thread Danny Sokolsky
Excellent! From: Gene Thomas [mailto:thomg...@att.net] Sent: Saturday, March 29, 2014 11:28 AM To: Danny Sokolsky; MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] ML 4.2 backup restore to ML 7.x I was finally able to get the ML 4.2 backup to restore on ML 7.0 by changing

Re: [MarkLogic Dev General] ML 4.2 backup restore to ML 7.x

2014-03-28 Thread Danny Sokolsky
I can't say that I have done this, but I would expect it to work. I would expect that, as soon as it mounted the db in 7, that it would start reindexing (if reindexing is enabled). I would test it first, but I think it will work. -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] ML 4.2 backup restore to ML 7.x

2014-03-28 Thread Danny Sokolsky
)? -Danny From: Gene Thomas [mailto:thomg...@att.net] Sent: Friday, March 28, 2014 2:16 PM To: Danny Sokolsky; MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] ML 4.2 backup restore to ML 7.x Thank you Danny, That is what I am trying to do. Here is the text of an email I sent

Re: [MarkLogic Dev General] Failed over Security Database

2014-03-18 Thread Danny Sokolsky
In order to set up failover on a forest, it must be in a directory other than the default directory. The default directory (/opt/MarkLogic/Forests on linux, for example) is known as a private directory. For the procedure to move a forest to a public directory, see this section of the doc:

Re: [MarkLogic Dev General] Failed over Security Database

2014-03-18 Thread Danny Sokolsky
the forest. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Monday, March 17, 2014 11:01 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Failed over Security Database In order to set

Re: [MarkLogic Dev General] Domain scope as document pattern

2014-03-13 Thread Danny Sokolsky
Hi Mihir, If you are using directory scope, your URIs need to be rooted (for example, with a / character). Since my-uri-something1.xml is not rooted, you cannot access it with a directory domain. As Mary indicated, you could put it in a collection and access it that way. If you want to do

Re: [MarkLogic Dev General] AWS S3 Function Library?

2014-03-07 Thread Danny Sokolsky
Here is a link to the docs about setting it up: http://docs.marklogic.com/guide/performance/disk-storage#id_77685 -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Harry Bakken Sent: Friday, March 07, 2014 5:34 AM To: MarkLogic

Re: [MarkLogic Dev General] using additional-query to de-boost documents

2014-02-27 Thread Danny Sokolsky
And there is one other wrinkle about doing it in 6-range queries do not contribute to score in MarkLogic 6; they do in MarkLogic 7. Might be a good excuse to move to 7. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Erik

Re: [MarkLogic Dev General] Convert String to date

2014-02-18 Thread Danny Sokolsky
You of course would need to bind something to that variable to. Here is an example without a variable that works: xdmp:parse-dateTime([Y0001]-[M01]-[D01], 2014-02-19) -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Run Scheduled events

2014-02-07 Thread Danny Sokolsky
I think we need a bit more information to help diagnose this. What does run-scheduled-events.xqy look like, and what is the exact full stack of the error. It might have a lot more information in it. When you say it worked fine on other servers, what exactly do you mean? -Danny From:

Re: [MarkLogic Dev General] ML7 excludes packaging library?

2014-02-06 Thread Danny Sokolsky
FWI, the doc for this has been corrected: http://docs.marklogic.com/pkg -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Will Thompson Sent: Wednesday, January 15, 2014 2:09 PM To: MarkLogic Developer Discussion Subject: Re:

Re: [MarkLogic Dev General] No cts:element-attribute-query?

2014-01-30 Thread Danny Sokolsky
Hi Geert, Attributes are indexed, but they have no children, so it would not make sense to have an analogous constructor to element-query for attributes. The difference with attributes is that you have to ask for them in order to search for content in them. -Danny -Original Message-

Re: [MarkLogic Dev General] Size of an index

2014-01-24 Thread Danny Sokolsky
You can look at the size of the database, either in the database status page or using xdmp:forest-status and/or xdmp:forest-counts for each forest in the database. If you add an index or change index settings for a database, you can compare the sizes before and after (although merges will

Re: [MarkLogic Dev General] ML7 excludes packaging library?

2014-01-15 Thread Danny Sokolsky
:) From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Will Thompson Sent: Wednesday, January 15, 2014 2:09 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] ML7 excludes packaging library? Ah, found it. Thanks

Re: [MarkLogic Dev General] Missing Incompatibility in ML 7 Docs

2013-12-04 Thread Danny Sokolsky
Thanks Ryan, we will try and get this in the docs. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Ryan Dew Sent: Wednesday, December 04, 2013 11:15 AM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] Missing

Re: [MarkLogic Dev General] Get document URI's in a CPF pipeline

2013-11-13 Thread Danny Sokolsky
You might be able to get some or all of what you need by turning on some or all of the trace events for CPF: http://docs.marklogic.com/guide/cpf/error#id_26638 Be careful what you ask for, though, as these can be quite chatty. -Danny From:

Re: [MarkLogic Dev General] Qconsole not found in MLS 6.0-4.1

2013-11-09 Thread Danny Sokolsky
Hi Mariano, You probably did not have the needed prerequisites for the app services upgrade to complete successfully. You can fix this by updating the app server configurations for the App-Services and manage App Servers according to this specification:

Re: [MarkLogic Dev General] Reprocessing error documents in CPF

2013-10-24 Thread Danny Sokolsky
Or, if you have an update action on your pipeline, you can just do an update to the documents that are in the error state (after corrected the error state, if appropriate). CPF is fired by triggers, and you can configure it to be triggered by create and/or update. So if you have an update

Re: [MarkLogic Dev General] Reprocessing error documents in CPF

2013-10-24 Thread Danny Sokolsky
...@developer.marklogic.commailto:general-boun...@developer.marklogic.com] Namens Danny Sokolsky Verzonden: donderdag 24 oktober 2013 19:50 Aan: MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] Reprocessing error documents in CPF Or, if you have an update action on your pipeline, you can just do

Re: [MarkLogic Dev General] Reprocessing error documents in CPF

2013-10-24 Thread Danny Sokolsky
processing again). Thanks for keeping me honest Geert! -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Thursday, October 24, 2013 1:13 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General

Re: [MarkLogic Dev General] Delete URI from a directory which contains more file

2013-10-11 Thread Danny Sokolsky
Hi Gurbeer, Do you have maintain directory last modified set on the database? That setting will cause a lot of locks to occur. If it is true, true, try setting it to false and see what happens. Also, what version of MarkLogic ( xdmp:version() )? -Danny From:

Re: [MarkLogic Dev General] Delete URI from a directory which contains more file

2013-10-11 Thread Danny Sokolsky
of records its now 63697 MB I am reading this number from Monitoring Dashboard --Disk Space -- Mouse hover on Forest. ~Gurbeer From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Friday, October 11, 2013 12:28 PM To: MarkLogic

Re: [MarkLogic Dev General] Proximity Search Algorithm

2013-10-11 Thread Danny Sokolsky
Hi Abhishek, Did you see this part of the doc: http://docs.marklogic.com/guide/search-dev/relevance#id_34743 Does that explain what you need to know? It is very user-tunable, as you can specify different distance-weights. -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Schema Validation problem

2013-10-04 Thread Danny Sokolsky
Hi Andres, I don't see any schema or xml files attached, so it is hard to comment on it. Also, what version of MarkLogic are you using (xdmp:version() )? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Andres Felipe Restrepo

Re: [MarkLogic Dev General] access unc paths on windows?

2013-10-03 Thread Danny Sokolsky
I am not positive, but I believe that the drive just needs to be read/writable for the SYSTEM user (or whichever user the service is run as). So if you map that as a drive and it has the proper permissions (which is tricky in windows sometimes), I would think it would work. -Danny From:

Re: [MarkLogic Dev General] Time out for http calls?

2013-09-25 Thread Danny Sokolsky
And for a given query, you can change the time limit (up to the value of max time limit on the App Server) using: http://docs.marklogic.com/xdmp:set-request-time-limit -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert

Re: [MarkLogic Dev General] xdmp:http-get using digest authentication

2013-09-11 Thread Danny Sokolsky
Have you tried connecting to the Apache server from another client (like curl for example)? Are you sure it is set up to use digest auth? -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Vijayasekar Padmanaban Sent: Wednesday,

Re: [MarkLogic Dev General] Sequence-type matching on element AND attribute

2013-09-10 Thread Danny Sokolsky
How about something like: typeswitch ($x) case element (foo) return if ($x/@bar) then do-something() else () -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Ignacio Tripodi Sent: Tuesday,

Re: [MarkLogic Dev General] Sequence-type matching on element AND attribute

2013-09-10 Thread Danny Sokolsky
. I was wondering if there was a cleaner way to put it all in a single sequence-type matching expression. Thanks, though! -i On Sep 10, 2013, at 4:33 PM, Danny Sokolsky danny.sokol...@marklogic.com wrote: How about something like: typeswitch ($x) case element (foo) return if ($x/@bar

Re: [MarkLogic Dev General] Individual session timeouts

2013-08-26 Thread Danny Sokolsky
Hi Sergio, You can use xdmp:set-request-time-limit: http://docs.marklogic.com/xdmp:set-request-time-limit If you wanted it to do something based on user or role, you could have some code that runs at the beginning of each request to appropriately set the time limit based on who they are. But

Re: [MarkLogic Dev General] Does adding a document to a collection trigger a CPF domain?

2013-08-21 Thread Danny Sokolsky
Hi Tim, Yes, adding a document to a collection would fire an update trigger because adding a collection is an update. What you could do is have the updates that add a collection put the document into some state that, when triggered, would have an action that is a noop. -Danny From:

Re: [MarkLogic Dev General] Does adding a document to a collection trigger a CPF domain?

2013-08-21 Thread Danny Sokolsky
events. Just something to think about... Tim From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Wednesday, August 21, 2013 2:20 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Does adding

Re: [MarkLogic Dev General] Does adding a document to a collection trigger a CPF domain?

2013-08-21 Thread Danny Sokolsky
Dev General] Does adding a document to a collection trigger a CPF domain? I hear you. BTW, how would you recommend checking for a change in content? Tim From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Wednesday

Re: [MarkLogic Dev General] list of element name

2013-08-19 Thread Danny Sokolsky
No, you can't use functions in the index definitions. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Michael Sokolov Sent: Sunday, August 18, 2013 2:44 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General]

Re: [MarkLogic Dev General] Registered Query Best Practices

2013-07-31 Thread Danny Sokolsky
OK, if it is range queries that are at play here, then it might be interesting to look at how big are your forests? It is possible that adding more forests might increase your parallelism and make each forest's part of the index resolution smaller. This is especially true with Range Index

Re: [MarkLogic Dev General] Versioning of data

2013-07-24 Thread Danny Sokolsky
Hi Gurbeer, You can look at the Document Library Services (DLS) API: http://docs.marklogic.com/guide/app-dev/dls http://docs.marklogic.com/dls DLS allows you to build check-in, check-out kinds of applications. -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] json:object

2013-07-22 Thread Danny Sokolsky
You can try looking through this section of the doc for a little more info too: http://docs.marklogic.com/guide/app-dev/json -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Lee Sent: Monday, July 22, 2013 11:44 AM To:

Re: [MarkLogic Dev General] Reg: Configuring Database

2013-07-11 Thread Danny Sokolsky
Hi Arul, I think we need a little more info here. How exactly did you create the database (ie, using the Admin Interface, using Info Studio, etc)? Is this a recently-upgraded system. What version are you running (ie, 5.0-1, 5.0-5, etc)? -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] preserve sort order

2013-07-09 Thread Danny Sokolsky
Hi Mary, I think the order of the attributes does not have any meaning as XML does not have a notion of order in attributes. http://www.w3.org/TR/REC-xml/#sec-starttags If you want to preserve the order, consider putting these in elements instead of attributes. -Danny From:

Re: [MarkLogic Dev General] Script for ML Database Configuration

2013-06-17 Thread Danny Sokolsky
Or, in this case, you can just use the Admin api database-copy function, which I think does exactly what you want: https://docs.marklogic.com/admin:database-copy -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Garrow, Heather

Re: [MarkLogic Dev General] Queryfor searchingdocuments witha null node

2013-06-17 Thread Danny Sokolsky
...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] En nombre de Danny Sokolsky Enviado el: viernes, 14 de junio de 2013 23:14 Para: MarkLogic Developer Discussion Asunto: Re: [MarkLogic Dev General] Queryfor searchingdocuments witha null node If you plan on upgrading to 5, I

Re: [MarkLogic Dev General] Query for searching documents witha null node

2013-06-14 Thread Danny Sokolsky
Dpto. Sistemas Grupo Joly De: general-boun...@developer.marklogic.commailto:general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] En nombre de Danny Sokolsky Enviado el: jueves, 13 de junio de 2013 18:45 Para: MarkLogic Developer

Re: [MarkLogic Dev General] Query for searching documents with a null node

2013-06-13 Thread Danny Sokolsky
in it. Thanks, Mariano Grau mgrau @ grupojoly.com Dpto. Sistemas Grupo Joly De: general-boun...@developer.marklogic.commailto:general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] En nombre de Danny Sokolsky Enviado el: jueves, 13 de

Re: [MarkLogic Dev General] Query for searching documents with a null node

2013-06-12 Thread Danny Sokolsky
I do not know of a way to express that as a cts:query. The problem is that it is hard to search for a combination of something that is there and something that is not there. If you don't care about relevance order, you can do this in an xpath as follows: /doc[published[pub/string() eq

Re: [MarkLogic Dev General] Midnight hour

2013-05-31 Thread Danny Sokolsky
Hi Gary, There is something that was fixed in 5.0-5 that caused this error, although I am not sure what is causing it for you. Do you have a scheduled task that occurs at midnight? Maybe that task has some sort of error in it? -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Termlist database error

2013-05-28 Thread Danny Sokolsky
Gary, Keep in mind here that the termlist warning you are seeing in the logs is a warning, not an error. It effectively says that for the terms that are added to this list, assume that they exist in each document in the database and stop tracking position data for them. And if that termlist

Re: [MarkLogic Dev General] Unable to get the value of Element Š.

2013-05-24 Thread Danny Sokolsky
Hi Kashif, Why not treat your XML as XML instead of a string. Then you can just use XPath. Something like: let $document := report body row ChapterTitleFront Matter/ChapterTitle /row /body /report return $document//ChapterTitle = ChapterTitleFront

Re: [MarkLogic Dev General] Unable to get the value of Element Š.

2013-05-24 Thread Danny Sokolsky
. Danny I am trying to resolve a problem where I have to convert text string into the tag name and then use that to extract the value from the XML. Best Regards, Kashif Khan Sent from my iPhone On May 24, 2013, at 5:47 PM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol

Re: [MarkLogic Dev General] Unable to get the value of Element Š.

2013-05-24 Thread Danny Sokolsky
the value of Element Š. Yes I looked into that but the problem is that I can not use any MarkLogic functions. Best Regards, Kashif Khan Sent from my iPhone On May 24, 2013, at 6:36 PM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com wrote: Hi Kashif, In that case, you

Re: [MarkLogic Dev General] Sorting on aggregation in ML4.2-7

2013-05-23 Thread Danny Sokolsky
Hi Abeshek, First off, I am not totally sure what you mean by summation value of one field, but I am guessing you mean to sum up all of the value elements under your content element. To start, the naive way to do this is to just do a flowr with an order by, something like this: xquery

Re: [MarkLogic Dev General] Sorting on aggregation in ML4.2-7

2013-05-23 Thread Danny Sokolsky
:-general-boun...@developer.marklogic.com wrote: - To: MarkLogic Developer Discussion general@developer.marklogic.commailto:general@developer.marklogic.com From: Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com Sent by: general-boun

Re: [MarkLogic Dev General] Updates creating additional documents

2013-05-23 Thread Danny Sokolsky
Is there a CPF pipeline attached to the database (or some other triggers)? If so, that might be what is causing the updates. In general, batches are more efficient than single updates, maybe batches of 100 or 1000 (or more or less...), depending. As you said, tho, a failure meant that the

Re: [MarkLogic Dev General] ML Project Issues

2013-05-21 Thread Danny Sokolsky
Hi Bob, Here are a few questions and a few things I would focus on: * I am confused what version you are on - is it 5.0-4.1 for this project 4.0? * Is this production or development? If it is production, you might consider contacting MarkLogic support. * Do you have

Re: [MarkLogic Dev General] ML Project Issues

2013-05-21 Thread Danny Sokolsky
. For example if the system is paging heavily and using large amounts of swap, that will directly affect database performance. -- Mike On 21 May 2013, at 09:21 , Danny Sokolsky danny.sokol...@marklogic.com wrote: Hi Bob, Here are a few questions and a few things I would focus on: * I am

Re: [MarkLogic Dev General] ML Project Issues

2013-05-21 Thread Danny Sokolsky
there are? On Tue, May 21, 2013 at 11:21 AM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com wrote: Hi Bob, Here are a few questions and a few things I would focus on: * I am confused what version you are on - is it 5.0-4.1 for this project 4.0

Re: [MarkLogic Dev General] General Digest, Vol 107, Issue 41 [XDMP:LOGIN(USER, PASS), not working when using through XDBC]

2013-05-16 Thread Danny Sokolsky
xdmp:login only works on app servers that allow application-level authentication, which means it works on HTTP servers, not an XDBC servers (it will always return false on an XDBC server). Also, note that XDBC servers do not have app-level authentication. So as Brent suggests, your Java code

Re: [MarkLogic Dev General] Need help with mass updates

2013-05-06 Thread Danny Sokolsky
You can also use xdmp:spawn to update a batch at a time. You would then need two modules, the xdmp:spawn module, which typically would have an external variable that you would use to pass in the URLs to process, and another module that figures out the batches and then passes them off to the

Re: [MarkLogic Dev General] How to test whether doc exists

2013-04-26 Thread Danny Sokolsky
I'm sure you all know this, but just as a reminder: keep in mind that read locks only happen on update transactions, so if it is a query transaction that is not a factor. -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] save text results to file

2013-04-24 Thread Danny Sokolsky
The second arg to save is a node, not a string. Try making $r into a text node: xdmp:save('c:\export.csv', text{$r}, options xmlns=xdmp:savemethodtext/method/options) -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary

Re: [MarkLogic Dev General] large binary documents -- part of license size limit?

2013-04-24 Thread Danny Sokolsky
I believe they are when they are managed by MarkLogic, but are not when they are external binary documents. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Stu Salsbury Sent: Wednesday, April 24, 2013 10:48 AM To: General

Re: [MarkLogic Dev General] Log File

2013-04-24 Thread Danny Sokolsky
Have you tried looking at what the Admin Interface does on /error-logs.xqy ? For example: http://localhost:8001/error-logs.xqy -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Singh, Gurbeer Sent: Wednesday, April 24, 2013 1:53

Re: [MarkLogic Dev General] Log File

2013-04-24 Thread Danny Sokolsky
...@developer.marklogic.commailto:general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Wednesday, April 24, 2013 5:01 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Log File Have you tried looking at what the Admin

Re: [MarkLogic Dev General] MarkLogic Informatica ODBC Connectivity

2013-04-23 Thread Danny Sokolsky
Hi Abhishek, The ODBC driver we have is for Windows: http://developer.marklogic.com/products/odbc We have tested it with Tableau and Cognos, but it might work with other tools (we have anecdotal evidence that it does). You can use that to communicate with MarkLogic Server running on any

Re: [MarkLogic Dev General] Upgrading from ML 5.0-3.3 to ML 5.0-5

2013-04-16 Thread Danny Sokolsky
It should not, but as always, I recommend testing it first. It is always possible that your application is relying on some behavior that changes due to a bug fix. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sinang

Re: [MarkLogic Dev General] Accessing WebDav as Non Admin User

2013-04-02 Thread Danny Sokolsky
You may also need to add that permission to the directory. Something like: xdmp:document-add-permissions( /app/, (xdmp:permission(AHD-Access-Role,read))) -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Khan,

Re: [MarkLogic Dev General] Accessing WebDav as Non Admin User

2013-04-02 Thread Danny Sokolsky
-permissions( fn:document-uri($x), (xdmp:permission(AHD-Access-Role,read))) Script 2 == xdmp:document-add-permissions( /app/, (xdmp:permission(AHD-Access-Role,read))) Kashif Khan, PMI-ACP On 4/2/13 4:48 PM, Danny Sokolsky danny.sokol...@marklogic.com wrote: You may also

Re: [MarkLogic Dev General] Reprocessing non-UTF8 ingested records/elements

2013-03-28 Thread Danny Sokolsky
Well, if the records are already stored in MarkLogic as either XML or text, then they are now UTF8 (because MarkLogic stores everything in UTF8), so my guess is you will have to go back to the old files in order to figure out which characters got transcoded incorrectly. The exception here

Re: [MarkLogic Dev General] ML Backup Through Xquery not working

2013-03-27 Thread Danny Sokolsky
Hi Mohanraj, The function you called does not initiate a backup; it is a building block for for setting up scheduled backups. To backup a database from XQuery, use xdmp:database-backup: https://docs.marklogic.com/xdmp:database-backup This will start off a backup operation. It returns an id

Re: [MarkLogic Dev General] List of Unique Nodes

2013-03-06 Thread Danny Sokolsky
The functx library has a bunch of functions to do stuff like this. I think distinct-deep works for this. You can find those here: http://www.xqueryfunctions.com/ And also MarkLogic ships with that library, so you can import it directly. Here is an example: xquery version 1.0-ml;

Re: [MarkLogic Dev General] Throttling webservice calls

2013-03-04 Thread Danny Sokolsky
You can serialize the last webservice call status into a document to create a sort of locl. For example, keep a document names /last-webservice-call.xml with an element showing the timestamp of the last call and another element showing some id from the caller. Something like: doc

Re: [MarkLogic Dev General] Accounting for empty element that has range index

2013-02-27 Thread Danny Sokolsky
constraint since there's not really a way to do that through the search API directly, correct? From: general-boun...@developer.marklogic.commailto:general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: Wednesday, February 27, 2013 2

Re: [MarkLogic Dev General] Accounting for empty element that has range index

2013-02-26 Thread Danny Sokolsky
Hi David, Do you have your file log level turned to Debug? I think it needs to be debug to see the reindexing errors. I think the quickest path to a solution here will be to create a 1-document database that shows this issue. Then you will probably be able to figure out the issue. My guess

Re: [MarkLogic Dev General] Getting Bad word size during restore db

2013-02-25 Thread Danny Sokolsky
Also, make sure the 2 machines are the same platform and architecture: xdmp:platform(), xdmp:architecture() databases from one platform/architecture cannot be just moved to use on another platform/architecture. If you need to do that, use mlcp (or xqsync). -Danny -Original Message-

Re: [MarkLogic Dev General] how to declare a namespace for a range path index?

2013-02-20 Thread Danny Sokolsky
Hi Jakob, You need to create a Path Namespace for your prefix, then you can use that prefix in your path index. Here is the procedure: http://docs.marklogic.com/guide/admin/range_index#id_54948 -Danny From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] how to declare a namespace for a range path index?

2013-02-20 Thread Danny Sokolsky
, Sujith maramsuj...@gmail.commailto:maramsuj...@gmail.com wrote: Hi Jakob, you can even refer to marklogic blog (Evan Lenz). It has with examples. http://developer.marklogic.com/blog/path-range-indexes http://developer.marklogic.com/blog/path-range-indexes-2 On Wed, Feb 20, 2013 at 4:55 PM, Danny

Re: [MarkLogic Dev General] how to declare a namespace for a range path index?

2013-02-20 Thread Danny Sokolsky
... cheers, Jakob. On Wed, Feb 20, 2013 at 11:48 PM, Danny Sokolsky danny.sokol...@marklogic.commailto:danny.sokol...@marklogic.com wrote: You have to use admin:database-add-path-namespace first to add it to your configuration (the path-namespace just creates the path specification

Re: [MarkLogic Dev General] GET over SSL with self-signed cert

2013-01-07 Thread Danny Sokolsky
This is just a guess, but my guess is that this has to do with MarkLogic 6 running in FIPS mode. Here is some description of the incompatibilities: http://docs.marklogic.com/guide/relnotes/chap4#id_13394 I am theorizing that MarkLogic 5 is using a less secure cipher for this. One thing you

Re: [MarkLogic Dev General] GET over SSL with self-signed cert

2013-01-07 Thread Danny Sokolsky
] GET over SSL with self-signed cert Danny - FIPS mode on the ML6 server doesn't seem to have an effect. Should I contact support? -Will On 1/7/13 2:30 PM, Danny Sokolsky danny.sokol...@marklogic.com wrote: This is just a guess, but my guess is that this has to do with MarkLogic 6 running in FIPS

Re: [MarkLogic Dev General] xdmp:xslt-eval/invoke expected behavior

2012-12-22 Thread Danny Sokolsky
Hi Will, I am not 100% positive about this, but I think it is a feature. The MarkLogic XSLT engine is 2.0, not 1.0, and when it sees 1.0 stylesheets, it runs them in 1.0 compatibility mode. See the XSLT 2 spec for the gory details. So I think this is as expected. -Danny

Re: [MarkLogic Dev General] Performance issue between 5.0-2 and 5.0-4.1

2012-12-20 Thread Danny Sokolsky
Also, you might look in your log files and see what they say is going on. From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of John Zhong Sent: Thursday, December 20, 2012 1:54 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic

Re: [MarkLogic Dev General] cpf install not scriptable via admin api?

2012-12-13 Thread Danny Sokolsky
Hi Jakob, You are correct, you just need to load up the pipelines, which is not done with the Admin API. There is a cpf api to help you do that: http://docs.marklogic.com/cpf CPF being installed means that all the cpf artifacts are available. Once you load up the cpf stuff, if you look in

Re: [MarkLogic Dev General] resolve-uri working differently in XQuery and XSLT?

2012-12-07 Thread Danny Sokolsky
You can use the xdmp:resolve-uri function from xslt to get this behavior: http://docs.marklogic.com/xdmp:resolve-uri It has more lax semantics than the fn:resolve-uri. I think that should solve the issue here. -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] Hanging on Security and configuration upgrade page

2012-12-06 Thread Danny Sokolsky
It might take a little while to finish, especially if you did not set your databases to disable reindexing. Have a look at your log file and see what it is doing. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Singh, Gurbeer

Re: [MarkLogic Dev General] Odd app server behaviour

2012-11-30 Thread Danny Sokolsky
As Mike said, the collation is a good thing to double-check. It is best practice to specify the collation in the range constraint, that way you will not have to worry about default collation. So make sure your constraint has the collation specified. Something like: options

Re: [MarkLogic Dev General] Declare default element namespace

2012-10-25 Thread Danny Sokolsky
That does not actually search in the empty namespace. That undeclares the prefix empty. If you want to search in no namespace after creating a default element namespace, you have to either use a function such as fn:QName to generate a QName in no namespace or do what David suggested using

Re: [MarkLogic Dev General] XDMP:FORESTERR SVC-MAPINI can't merge forest

2012-10-17 Thread Danny Sokolsky
Perhaps there is some other process (like for example a virus checker?) that is going where it is not supposed to go? -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Nelson Wells Sent: Wednesday,

Re: [MarkLogic Dev General] A question on cts:search

2012-10-03 Thread Danny Sokolsky
For starters, it looks like the first query is searching on this: //xhtml:html/xhtml:head/xhtml:meta/fwp:divisions and the second query is searching on this: /xhtml:html/xhtml:head/fwp:divisions If you remove the xhtml:meta step in the first one does it return what you expect? -Danny From:

Re: [MarkLogic Dev General] Different WebDAV XML repair behavior in ML 6?

2012-09-19 Thread Danny Sokolsky
Hi David, As far as I know, WebDAV has always repaired by default (without a way to control it), so this behavior is the same as it was in MarkLogic 5. Maybe there is something slightly different about what you are doing compared to what you were doing before? -Danny -Original

Re: [MarkLogic Dev General] xdmp:get-request-field documentation

2012-09-17 Thread Danny Sokolsky
Hi Florent, A couple of things here: * The return type in the doc for xdmp:get-request-field is wrong--it should be item()*. We will work to correct that. * The type of node will in most cases depend on the mimetype, which for the file types will be based on its extension. For a list of

Re: [MarkLogic Dev General] Help with namespace Declaration in Marklogic

2012-09-12 Thread Danny Sokolsky
A couple of point here: * I recommend you trying to run each of these in Query Console to help you understand what is going on. * The way you have written the queries they will need to put the whole db in memory. Avoid the following idiom: for $x in doc() unless you really have to. You

Re: [MarkLogic Dev General] Help with namespace Declaration in Marklogic

2012-09-12 Thread Danny Sokolsky
with namespace Declaration in Marklogic Hi Danny, thanks for responding.. Both the queries run fine and return correct results in the M/L query Console with correct results.. its only thr c# that Query2 produces valid results but Query1 brings out empty result. On Wed, Sep 12, 2012 at 11:19 PM, Danny

Re: [MarkLogic Dev General] Help with namespace Declaration in Marklogic

2012-09-12 Thread Danny Sokolsky
: [MarkLogic Dev General] Help with namespace Declaration in Marklogic yes. i checked that,, I actually copy pasted the query from the query console... i was wondering of there is anything special we need to do ? On Wed, Sep 12, 2012 at 11:38 PM, Danny Sokolsky danny.sokol...@marklogic.com wrote: Maybe

Re: [MarkLogic Dev General] Chunked transfers

2012-09-05 Thread Danny Sokolsky
Hi Gavin, Yes, HTTP chunking was added as part of the binary support improvements in 5.0. -Danny -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Gavin Haydon Sent: Wednesday, September 05, 2012 10:45 AM To:

Re: [MarkLogic Dev General] Complex type instead of escaped html in simple type

2012-08-26 Thread Danny Sokolsky
Hi Henrik, How about this: let $x := outernodeThis is a span class=heavy very/span rainy night in Copenhagen/outernode return $x/node() This will return all of the nodes (text and element in this case) that are children of outernode. -Danny -Original Message- From:

<    1   2   3   4   5   6   7   8   >