Re: [MarkLogic Dev General] fn:current-dateTime()

2017-01-05 Thread Wayne Feick
If you're trying to figure out how long things take to run, you could use xdmp:elapsed-time(). http://docs.marklogic.com/xdmp:elapsed-time Be aware that lazy/delayed evaluation can result in confusing results. You can avoid that with xdmp:eager(). http://docs.marklogic.com/xdmp:eager

Re: [MarkLogic Dev General] dls version major vs minor

2016-02-10 Thread Wayne Feick
ed. > > > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklo

Re: [MarkLogic Dev General] Marklogic hosting options?

2016-01-07 Thread Wayne Feick
> General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com T

Re: [MarkLogic Dev General] Re-index a replica database

2015-12-01 Thread Wayne Feick
[general-boun...@developer.marklogic.com] on behalf of David Gorbet > [david.gor...@marklogic.com] > Sent: 01 December 2015 19:43 > To: MarkLogic Developer Discussion > Subject: Re: [MarkLogic Dev General] Re-index a replica database > > Out of interest, what's the scen

Re: [MarkLogic Dev General] Re-index a replica database

2015-12-01 Thread Wayne Feick
gt; > Thanks > Rob > > > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporatio

Re: [MarkLogic Dev General] Problem with verifying SSL certificates

2015-10-28 Thread Wayne Feick
y the sender and is > prohibited. If you have received this message in error, please contact > the sender immediately by return email and delete the original message > from all computer systems. Thank you. > > > ___ > General mailing list > General@developer.marklogic.com > Ma

Re: [MarkLogic Dev General] xdmp:forest-clear

2015-10-02 Thread Wayne Feick
wer > Handelskai 94-96 > A-1200 Vienna > > Web: http://www.ebcont.com > > OUR TEAM IS YOUR SUCCESS > > UID-Nr. ATU68135644 > HG St.Pölten - FN 399978 d > > > ___ > General mailing list > General@developer.m

Re: [MarkLogic Dev General] Mount Db error while ML upgrade from 6 to 8

2015-06-04 Thread Wayne Feick
> General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378

Re: [MarkLogic Dev General] Forest Warning

2015-05-11 Thread Wayne Feick
erformance will be degraded. > > 2. Create more forest and attach to the database. if you are using 7+, > this automatically re-balance the data. > > 3. After re-balancing the content, you might perform manual merge to > claim memory immediately. > > 3. Split your files into sm

Re: [MarkLogic Dev General] Forest Warning

2015-05-11 Thread Wayne Feick
er options any suggestions would be helpful. > > Is deleting this file an option as the last resort? > > Thanks > > > > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http

Re: [MarkLogic Dev General] Forest Warning

2015-05-11 Thread Wayne Feick
documents, and then deleting the original document with xdmp:document-delete(). Wayne. On 05/11/2015 10:52 AM, Wayne Feick wrote: > Hi Shashidhar, > > It sounds like the document was close to the limit when it was > originally ingested, and that turning on additional index setting

Re: [MarkLogic Dev General] XDMP-TOOMANYSTANDS

2015-05-01 Thread Wayne Feick
set the > > MAX-MERGE-SIZE to 64GB instead of 32 GB > > Can someone help me whether this 64gb is ok > > Thanks > > > > > > > _______ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer

Re: [MarkLogic Dev General] cluster quorum

2014-12-19 Thread Wayne Feick
__ >> General mailing list >> General@developer.marklogic.com <mailto:General@developer.marklogic.com> >> http://developer.marklogic.com/mailman/listinfo/general > > > ___ > General mailing list > General@develop

Re: [MarkLogic Dev General] Is there any way to restrict Marklogic search on specific version of the document.?

2014-12-02 Thread Wayne Feick
here any other ways > of doing it? > > > -- > > Regards, > *Shruti Kapoor* > > > > ___ > General mailing list > General@developer.marklogic.com > <mailto:General@developer.marklogic.com>

Re: [MarkLogic Dev General] Geo-spatial API - Roadside Distance

2014-11-12 Thread Wayne Feick
d by > applicable law, this e-mail and other e-mail communications sent to and from > Cognizant e-mail addresses may be monitored. > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listi

Re: [MarkLogic Dev General] Adding new index to replicated ML servers

2014-09-29 Thread Wayne Feick
eplication also or >> does that include only data? >> >> Ville >> ___ >> General mailing list >> General@developer.marklogic.com <mailto:General@developer.marklogic.com> >> http://developer.marklogic.com/mailman/list

Re: [MarkLogic Dev General] unable to merge all deleted fragments out of the database

2014-09-26 Thread Wayne Feick
General mailing list >> General@developer.marklogic.com >> http://developer.marklogic.com/mailman/listinfo/general > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general -

Re: [MarkLogic Dev General] LDAP MarkLogic - Admin access

2014-08-28 Thread Wayne Feick
The fix will be in 7.0-4, which should be out in the next month or so (with the usual disclaimer that we don't preannounce release dates, plans can change, etc.). Wayne. On 08/27/2014 10:27 PM, Wayne Feick wrote: > Hi Abhishek, > > That looks like a bug in xdmp:user-last-login().

Re: [MarkLogic Dev General] LDAP MarkLogic - Admin access

2014-08-27 Thread Wayne Feick
__ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This e-mail and any accomp

Re: [MarkLogic Dev General] XDMP-REVIDXBADQRY: Reverse index bad query: and-query

2014-07-07 Thread Wayne Feick
l@developer.marklogic.com> http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com P

Re: [MarkLogic Dev General] New Feature Request: Unique Value Range Indexes

2014-06-04 Thread Wayne Feick
7;t need to trust anyone (including my future self) to always follow the same locking protocol. --- Ron Hitchens {r...@overstory.co.uk <mailto:r...@overstory.co.uk>} +44 7879 358212 On Jun 4, 2014, at 9:19 PM, Wayne Feick <mailto:wayne.fe...@marklogic.com>> wrote: The simples

Re: [MarkLogic Dev General] New Feature Request: Unique Value Range Indexes

2014-06-04 Thread Wayne Feick
m http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com

Re: [MarkLogic Dev General] Backup question

2014-05-31 Thread Wayne Feick
t; [mailto:general-boun...@developer.marklogic.com] On Behalf Of Wayne Feick > Sent: Saturday, May 31, 2014 2:43 PM > To: general@developer.marklogic.com > Subject: Re: [MarkLogic Dev General] Backup question > > If you are doing a database backup, changing the number of forests shouldn't > ch

Re: [MarkLogic Dev General] Backup question

2014-05-31 Thread Wayne Feick
degree of > compression? Is it impacted by concurrent backups? > > Thanks for any help with this! > > Tim Meagher > > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listin

Re: [MarkLogic Dev General] OpenSSL Heartbleed

2014-04-10 Thread Wayne Feick
gt;> General@developer.marklogic.com >> http://developer.marklogic.com/mailman/listinfo/general > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Pr

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

2014-03-28 Thread Wayne Feick
___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This e-mail and any accompanyin

Re: [MarkLogic Dev General] Regarding updating index in Master replica DB

2014-03-20 Thread Wayne Feick
eneral ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This e-mail and any accompanying attachmen

Re: [MarkLogic Dev General] Failed over Security Database

2014-03-18 Thread Wayne Feick
mechanism would serve as jump start, and basic fail-over.. Cheers *Van:*general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] *Namens *Wayne Feick *Verzonden:* dinsdag 18 maart 2014 22:27 *Aan:* general@developer.marklogic.com *Onderwerp:* Re: [MarkLogic Dev

Re: [MarkLogic Dev General] Failed over Security Database

2014-03-18 Thread Wayne Feick
__ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This e-mail and any accompanying attachments are c

Re: [MarkLogic Dev General] Database status

2014-01-20 Thread Wayne Feick
r.marklogic.com> http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@

Re: [MarkLogic Dev General] Document Level Authorization (Roles and Users)

2013-12-11 Thread Wayne Feick
des could have kept up, and that could > have cut the time down. -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This e-mail and any accompanying attachments are confidential. The information is intended solely for the

Re: [MarkLogic Dev General] dls version

2013-10-01 Thread Wayne Feick
s and disclaimers, which you should read. By messaging with Sender you consent to the foregoing. ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer Mark

Re: [MarkLogic Dev General] Programmatically determining forest failover

2013-04-16 Thread Wayne Feick
istinfo/general ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This

Re: [MarkLogic Dev General] Speeding-up forest replica rebuilding

2013-04-03 Thread Wayne Feick
If you do a backup of the master and restore to the replica, bulk synchronization will go much faster since it compares the set of fragments in each forest and only replicates the differences. Wayne. On 04/02/2013 06:35 PM, Danny Sinang wrote: Hello, Is there an ML config setting I can twe

Re: [MarkLogic Dev General] Alerting system

2013-01-17 Thread Wayne Feick
ing. >> >> >> >> ___ >> General mailing list >> General@developer.marklogic.com >> http://developer.marklogic.com/mailman/listinfo/general > ___ > General mailing li

Re: [MarkLogic Dev General] MarkLogic in AWS Cloud

2013-01-08 Thread Wayne Feick
I don't have a lot of experience with it, but EBS volumes have limited bandwidth. Some people have had success striping across multiple EBS volumes from within Linux instances. You could also look at the more recent guaranteed IOPs capability Amazon now offers. Wayne Ron Hitchens wrote:

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

2012-08-22 Thread Wayne Feick
No, there isn't. Your best bet would be to stop the server, clear OS caching from memory (e.g. unmount and remount the filesystem), and then restart the server again. Wayne Danny Sinang wrote: Hi, Is there an option in xquery, cts:search, or search:search telling ML not to fetch results f

Re: [MarkLogic Dev General] Local-disk forest failover

2012-08-16 Thread Wayne Feick
A slight refinement; replicas are equivalent copies rather than exact copies. You'll have the same fragments, but likely organized differently into stands. Wayne Michael Blakeley wrote: No on both questions. Forest replication is just like RAID-1. You set up the mirrors, and they are exact

Re: [MarkLogic Dev General] XDMP-RMRECORD : Journal record too large

2012-08-10 Thread Wayne Feick
inary"), ...)) -- Journal record too large: journalSize=256MB, recordSize=402MB ___ General mailing list General@developer.marklogic.com <mailto:General@developer.marklogic.com> http://developer.marklogic.com/mailman/

Re: [MarkLogic Dev General] Restore backup to newer version?

2012-07-24 Thread Wayne Feick
Yes, generally speaking we support restoring from an older release to a newer release. On 07/24/2012 02:07 PM, Gary Larsen wrote: Hi, I need to move a 4.2 ML installation to a new server and will copy the database using a backup. Does anyone know if a 4.2 backup can be restored to a 5.0 da

Re: [MarkLogic Dev General] US-Europe Cluster Configuration

2012-07-19 Thread Wayne Feick
t will automatically take over first ? I'm hoping a US-based failover host will take over first if a US-based forest goes down. Regards, Danny On Thu, Jul 19, 2012 at 1:52 PM, Wayne Feick mailto:wayne.fe...@marklogic.com>> wrote: With local-disk failover, replica forests w

Re: [MarkLogic Dev General] US-Europe Cluster Configuration

2012-07-19 Thread Wayne Feick
down ? Which server will take over and server the US1 forests ? US2 or EU2 ? Regards, Danny On Wed, Jul 18, 2012 at 7:16 PM, Wayne Feick mailto:wayne.fe...@marklogic.com>> wrote: Yes, this should work fine. You'll have a master US-Database in the US, and a master U

Re: [MarkLogic Dev General] US-Europe Cluster Configuration

2012-07-18 Thread Wayne Feick
ML cluster goes down, point EU webservers to US ML cluster) Do you think this would work ? Is there a better way to achieve our goals ? How do we extend this model should the time come for us to expand to Asia ? Regards, Danny -- Wayne Feick Principal Engineer MarkLogic Corpo

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

2012-04-18 Thread Wayne Feick
code dir (thus automatically only using the new version of files in A). I'll take "within a few microseconds" if "simultaneous" isn't really possible. Anyone know how to do this? Thanks! -Ryan -- Wayne Feick Principal Engineer MarkLogic Corporation wayne

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

2012-03-18 Thread Wayne Feick
ject the connection if the server has the wrong certs\keys? I know how to set up SSL on a server when a browser is involved, but I'm not real clear how to do this when another MarkLogic app server is involved as the client. I tried setting something up but both the server and client seem to

Re: [MarkLogic Dev General] Is this a security problem? Chrome thinks so

2012-02-29 Thread Wayne Feick
ning ML 4.2-4 where we're having this problem manifest. On Wed, Feb 29, 2012 at 12:50 PM, Wayne Feick mailto:wayne.fe...@marklogic.com>> wrote: Hi Steve, Technically, Chrome is not on our list of supported browsers although some of us do use it regularly so it tends to

Re: [MarkLogic Dev General] Is this a security problem? Chrome thinks so

2012-02-29 Thread Wayne Feick
Logic server can keep from happening? Or is this useful for something as well? Thanks Steve -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com This e-mail and any accompanying attachments are confidential. The information

Re: [MarkLogic Dev General] Adding your own certifications to ML

2011-12-20 Thread Wayne Feick
e how to import it. Any suggestions ? -David David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.com <mailto:d...@epocrates.com> 812-482-5224 -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1

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

2011-11-17 Thread Wayne Feick
, PUT, HEAD, DELETE and OPTIONS but nothing for PURGE and nothing for a custom method that I can see. Is there a way to send custom HTTP methods from MarkLogic? thanks, Ryan -- Wayne Feick Principal Engineer MarkLogic Corporation wayne.fe...@marklogic.com Phone: +1 650 655 2378 www.marklogic.com

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

2011-10-15 Thread Wayne Feick
Oh, nevermind, wasn't following the thread closely enough and responded before applying coffee to my brain. On 10/15/2011 08:27 AM, Wayne Feick wrote: You could use a scheduled task instead of a task that keeps respawning itself, and that'll solve the restart problem. With t

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

2011-10-15 Thread Wayne Feick
: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy

Re: [MarkLogic Dev General] Replication

2011-09-27 Thread Wayne Feick
ailing list gene...@developer.marklogic.com <http://developer.marklogic.com> http://developer.marklogic.com/mailman/listinfo/general ___ General mailing list gene...@developer.marklogic.com <http://developer.marklogic.com> http://developer.marklog

Re: [MarkLogic Dev General] Replication

2011-09-23 Thread Wayne Feick
obert >> ___ >> General mailing list >> General@developer.marklogic.com >> http://developer.marklogic.com/mailman/listinfo/general > ___ > General mailing list > General@developer.marklo

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

2011-09-06 Thread Wayne Feick
> Tim Finney > > > > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > ___ > General mailing list > General@develo

Re: [MarkLogic Dev General] Parallel Task Servers

2011-08-22 Thread Wayne Feick
ussion *Subject:* [MarkLogic Dev General] Parallel Task Servers Hello Everyone, I wanted to ask if it is possible to create multiple task servers to handle the load. So we can process the tasks on multiple task servers at a time. Best Regards, Kashif Khan -- Wayne Feick Principal Engineer

Re: [MarkLogic Dev General] Xinclude in XSLT

2011-07-09 Thread Wayne Feick
clude does not import the external module during the transform operation. As a workaround, I’m now invoking xinc:node-expand() on the document before passing it to xdmp:xslt-eval(). Shouldn’t I be able to expect the transformer in Marklogic to handle xincludes for me? -- Paul -- W

Re: [MarkLogic Dev General] More easter eggs: HMAC SHA and AWS

2011-05-10 Thread Wayne Feick
recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -- Wayne Feick Principal

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

2011-04-09 Thread Wayne Feick
ent hi all, I would like to replace the name of node and not it's content can anyone explain how to do it in marklogic. As xdmp:node-replace does the entire node replace. i have data like clark which i would like to change to clark. Thanks in advance, Ambika --

Re: [MarkLogic Dev General] Obtaining unique IDs for assigning to records

2011-03-11 Thread Wayne Feick
e next Record ID will automatically have a UID of UID05 assigned to it. I recognize that it is simple enough to do this unless an attempt to add 2 new records occurs simultaneously. Thank you! Tim Meagher -- Wayne Feick Principal Engineer MarkLogic Corporation Phone +1 650 655 237

Re: [MarkLogic Dev General] Marklogic forest state

2011-03-11 Thread Wayne Feick
without including replicas. Wayne. On 03/11/2011 05:42 PM, knk n wrote: Hello, Does marklogic perform backup of the forest which is in sync replicating mode? We have replica forest which are always in sync replicating mode and due to this backup fails. -- Wayne Feick Principal Engineer

Re: [MarkLogic Dev General] Royal Road to CPF using XSLT?

2011-03-10 Thread Wayne Feick
You might also consider a precommit trigger. David Sewell wrote: To paraphrase Euclid, I'm guessing there's no royal road to auto-applying XSLT to a document at load time into the database? Our use case is simply that for a given directory in one of our databases, we want to run all XML files

Re: [MarkLogic Dev General] Regarding md5

2010-12-29 Thread Wayne Feick
eturns a document node. Ideally in this case also the md5 should return same for both the $x and $y right? can you throw some light? Thanks & Regards Manoj On Wed, Dec 29, 2010 at 2:16 AM, Wayne Feick mailto:wayne.fe...@marklogic.com>> wrote: Hi M

Re: [MarkLogic Dev General] Regarding md5

2010-12-28 Thread Wayne Feick
Hi Manoj, The md5 function takes a string, so you're only acting on the character data. Try using xdmp:quote() to turn the XML tree into text and then calling md5() on the quoted text. Wayne Manoj wrote: Hi all, I was trying my hand on the xdmp:md5 api as we intended to use it for our

Re: [MarkLogic Dev General] Native support for hmacsha1

2010-11-08 Thread Wayne Feick
etc. I also noticed a post from Norm (when he posted an XQuery-OAuth solution) that he had to use a web service to compute the hmacsha1. But I tend to think native support would be the best solution. I would be interested in your thoughts. Thanks. Darin. -- Wayne Feick Lead Eng

Re: [MarkLogic Dev General] question about getting document from another database

2010-08-19 Thread Wayne Feick
quot;/a/b/*xml" from database B, how can I do it? Thanks, Helen _______ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general -- Wayne Feick Lead Engineer MarkLogic Corporation Phone +1 650 655 2378

Re: [MarkLogic Dev General] Range index for multiple date formats

2010-07-06 Thread Wayne Feick
ally modify the incoming data. A string index would handle the formats correctly. Is there a performance penalty for using a string index to do range searches on dates formatted as above? What is the order of magnitude of the penalty if there is one. Thanks. Bob -- Wayne Feick Lead Eng

Re: [MarkLogic Dev General] About transaction log and recovery

2010-06-22 Thread Wayne Feick
to write log and when the I/O happens. Could you point out some > materials that I can read about? Thanks! > > Thanks, > Ling > > Wayne Feick wrote: > >> Hi Ling, >> >> Yes, we maintain a transaction journal for each forest that allows us to >> re

Re: [MarkLogic Dev General] About transaction log and recovery

2010-06-22 Thread Wayne Feick
> General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > -- Wayne Feick Lead Engineer MarkLogic Corporation Phone +1 650 655 2378 Cell +1 408 981 4576 www.marklogic.com

Re: [MarkLogic Dev General] MarkLogic "rsync" command - RE: Mac Webdav Client setting xqyfilesasbinary

2010-06-15 Thread Wayne Feick
uot;Flexible Replication" do any of this ? From the title I'm guessing its ML to ML not Filesystem to ML. But thats just guessing :) *From:* general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] *On Behalf Of *Wayne Feick *Sent:* Tuesday, Ju

Re: [MarkLogic Dev General] MarkLogic "rsync" command - RE: Mac Webdav Client setting xqyfilesasbinary

2010-06-15 Thread Wayne Feick
I gave a talk at the User Conference that covered Flexible Replication in our upcoming 4.2 release. This may do a lot of what you want... Wayne. On 06/15/2010 09:05 AM, Lee, David wrote: I've been thinking of going ahead and prototypeing this. That is a marklogic "rsync" type command. Fr

Re: [MarkLogic Dev General] Regarding update in dls

2010-05-04 Thread Wayne Feick
Hi Judie, When we do XInclude expansion, we add base URI attributes that should help you here. Assuming your application hasn't manage to strip the information out (e.g. as a side effect of a round trip through a browser) you should be able to create a revursive descent parser or an XSLT trans

RE: [MarkLogic Dev General] How to obtain the version of theContent Processing Framework

2010-04-19 Thread Wayne Feick
I'll chime in with an upgrade subtlety... When CPF is installed on a database, pipeline configurations (i.e. XML documents) are copied from the file system to the triggers database. The pipelines specify which .xqy files are to be invoked, and for all the standard Mark Logic pipelines those .xqy f

Re: [MarkLogic Dev General] Passing authentication information in a URL

2010-04-16 Thread Wayne Feick
You could give your default user read permission to the images (and any other content that you don't want to protect) and then you don't need to log in at all. Normal application level login could then be used for sensitive content. See the xdmp:login() function. Wayne. On Fri, 2010-04-16 at 11

RE: [MarkLogic Dev General] tail-recursion with xdmp:spawn

2010-04-07 Thread Wayne Feick
That can works too, but you should be sure to consider whether documents [N,N+1000) at the time of the spawn are guaranteed to still be [N,N +1000] when the task gets around to executing. If you're adding, removing, or modifying documents, you'll get different document ordering over time. Wayne.

Re: [MarkLogic Dev General] tail-recursion with xdmp:spawn

2010-04-07 Thread Wayne Feick
That would work well and has the advantage that it can operate on an arbitrarily large set of documents. The downside is that you'll only have one processing thread working at a time. Another approach is to have an initial query create a list of documents to process and cut it into chunks (say 100

Re: [MarkLogic Dev General] Image cropping and binary manipulation

2010-03-30 Thread Wayne Feick
There is no direct support for image manipulation within the server. The usual approach is to set up a local web app that you can call from XQuery to do the manipulation for you. Wayne. On Tue, 2010-03-30 at 15:10 -0700, Keith L. Breinholt wrote: > Is there a way to manipulate the content of a

RE: [MarkLogic Dev General] Unique key construction

2010-03-29 Thread Wayne Feick
Hi Keith, Yes, various hash algorithms, including SHA-1 and -2, are part of the OpenSSL library we're using under the covers. We have had internal discussions about exposing them at some point, but not seriously enough to get the work scheduled into any particular release. I'll note this as some

Re: [MarkLogic Dev General] Unique key construction

2010-03-29 Thread Wayne Feick
We tend to use one of two approaches, depending on what we're doing. For things like HTTP servers, we use xdmp:random() (it's in group.xsd as the default value for http-server-id). For users and groups we use a hash based on the user or group name so that we can detect an attempt to create the u

Re: [MarkLogic Dev General] Invalid coercion and cts:query

2010-03-19 Thread Wayne Feick
query := {cts:or-query((cts:query($englishQuery), cts:query($germanQuery)))}/element() Wayne. On Fri, 2010-03-19 at 11:24 -0700, Wayne Feick wrote: > Hi Adam, > > You don't need that cts:query() wrapper around everything, just use > the cts:or-query() directly. > > The ct

Re: [MarkLogic Dev General] Invalid coercion and cts:query

2010-03-19 Thread Wayne Feick
Hi Adam, You don't need that cts:query() wrapper around everything, just use the cts:or-query() directly. The cts:query() function creates a query from an XML representation of it (e.g. if you had placed a query into a document). Wayne. On Fri, 2010-03-19 at 11:06 -0700, Adam Patterson wrote:

Re: [MarkLogic Dev General] Need dls:document-update-version-file($uri, $node, $version) function

2010-03-17 Thread Wayne Feick
Your create trigger could skip calling dls:document-manage() if the document is empty. That possibly combined with a periodic background task that goes ahead and manages those empty documents if they aren't updated within a minute or two would do the trick. Are you planning on updating managed doc

Re: [MarkLogic Dev General] "Hot Swapping" large data sets.

2010-03-17 Thread Wayne Feick
I'd suggest looking into collections or directories to constrain queries to one set or the other such that one is the live set you're serving up and the other is the set you're updating. You might also consider using the Library Services API where the updates operate on the most recent version of

RE: [MarkLogic Dev General] smtp relay on amazon ec2

2010-03-15 Thread Wayne Feick
The best way to send email from MarkLogic server an EC2 instance is to configure MarkLogic server to use localhost, and then configure your local mailer to do an authenticated (and possibly encrypted) relay through some other SMTP server that you have access to. Wayne. On Mon, 2010-03-15 at 08:40

Re: [MarkLogic Dev General] ML: Task Server Persistence Issue

2010-03-08 Thread Wayne Feick
That is correct, and is the intended behavior. If you need guaranteed execution, you may want to learn more by reading the Content Processing Framework (CPF) documentation. At a high level, CPF is a state machine implementation that allows you to add xquery main modules that act upon documents. The

Re: [MarkLogic Dev General] re: Sending parameters with xdmp:http-post

2010-02-03 Thread Wayne Feick
Hi Bob, Can you give me a little more information on why the server certificates don't match their host names? Re: ignoring the server certificate, xdmp:http-get() and related functions allow you to specify a false option to suppress any validation of the certificate. It looks like the docs didn'

Re: [MarkLogic Dev General] Is a merge required after using xdmp:node-replace (or insert)?

2010-02-03 Thread Wayne Feick
The system will do merges automatically, assuming you haven't disabled them. You shouldn't need to manually initiate a merge. You can look at the database status in the Admin UI to see the number of deleted fragments that have not yet been merged away. Wayne. On Wed, 2010-02-03 at 09:03 -0800,

Re: [MarkLogic Dev General] Attribute node replacement

2010-02-02 Thread Wayne Feick
xquery version "1.0-ml"; xdmp:document-insert("/test.xml", ); fn:doc("/test.xml"); xdmp:node-replace(fn:doc("/test.xml")/one/two/@this, attribute that {"bar"}); fn:doc("/test.xml") On Tue, 2010-02-02 at 17:37 -0800, Tim Meagher wrote: > Would someone show me what the syntax is for replacing the

RE: [MarkLogic Dev General] Regarding roles and permission in Marklogic

2010-01-22 Thread Wayne Feick
Not quite, Geert. A protected collection is only about who can add documents to the collection. It has no impact on what permissions you can put on documents in the collection. Wayne. On Fri, 2010-01-22 at 09:56 -0800, Geert Josten wrote: > Judie, > > Wayne makes a good point. You still need t

RE: [MarkLogic Dev General] Regarding roles and permission in Marklogic

2010-01-22 Thread Wayne Feick
Just to clarify a little, it depends on what you mean by "access". Geert is correct that you can use a protected collection to restrict which roles can add documents to the collection, but if your goal is to restrict who can read documents from the collection you'll need to manage it with the indiv

Re: [MarkLogic Dev General] ALERTING - Accessing Rule information in the main module mapped to an Action

2009-12-11 Thread Wayne Feick
Hi Sunil, When the alerting API invokes your module, it passes in external variables with the information you're looking for. http://developer.marklogic.com/pubs/4.1/apidocs/alerting.html#alert:make-action When a rule associated with the action matches a document, the

Re: [MarkLogic Dev General] Unexpected results when querying for included elements

2009-11-18 Thread Wayne Feick
Do you have the XInclude pipeline configured? You might be matching both the expanded and the unexpanded documents. On Wed, 2009-11-18 at 16:39 -0800, Stewart Shelline wrote: > I’m having trouble understanding the following behavior. Without > putting the document under DLS, I have inserted inclu

Re: [MarkLogic Dev General] xdmp:post

2009-11-16 Thread Wayne Feick
Are you familiar with a packet capture program like wireshark on linux? I typically use that to diagnose issues like this. Does your java server set a content length for its response? If not, our code will keep reading until the socket is closed. Is your Java code closing the stream when it's done

Re: [MarkLogic Dev General] Question about TaskServer and Threads

2009-11-10 Thread Wayne Feick
1) You could build a cron-like service by describing each when/condition/task combination in a document and then having a scheduled task that looks for these documents, runs their conditions, and spawns the task if the condition is met. There are a few ways you could design something like this, but

Re: [MarkLogic Dev General] Can't post JPG files...

2009-11-02 Thread Wayne Feick
Here's the important bits of the HTML form from one of our apps, which looks to be the same as yours except for the xmlns="" bit. Here is how it gets inserted into the database, which again looks very much like what you're doing. xdmp:document-inse

Re: [MarkLogic Dev General] Error while creating alert - triggers

2009-10-26 Thread Wayne Feick
Judie, The error indicates that the trigger is not associated with any alerting configuration. Here is some example code showing creation of create and modify triggers. The last three lines are key to associate the triggers with your alerting configuration. xquery version "1.0-ml";

Re: [MarkLogic Dev General] Alert- trigger problem

2009-10-26 Thread Wayne Feick
Dhivya, There is a sample application included with the distribution, mentioned at the end of the section on alerting in the search developers guide: http://developer.marklogic.com/pubs/4.1/books/search-dev-guide.pdf Did you verify that your triggers are really being created in your trig

Re: [MarkLogic Dev General] Re: Saving a document over XCC?

2009-10-07 Thread Wayne Feick
Jeroen, If you push the xdmp:security-assert() into a separate function called form your amp'd function, you'll get your expected behavior (assuming your amp is configured appropriately). The xdmp:security-assert() call does not take into consideration any amp'd roles on the immediate function, o

Re: [MarkLogic Dev General] Reg: version update

2009-09-29 Thread Wayne Feick
Hi Ashwini, The library services API requires that you insert a complete document, and does not allow you to use the node manipulation functions such as xdmp:node-insert-child(). Wayne. On Tue, 2009-09-29 at 06:47 -0700, Ashwini wrote: > Hi All, > > I included mainting versions of document i

Re: [MarkLogic Dev General] general serialization of cts

2009-09-24 Thread Wayne Feick
All of the cts queries serialize/deserialize as a feature of the server. Placing a query into an element turns it into its xml representation, and the cts:query() constructor turns the xml representation back into a query. let $cts-e as cts:query := cts:word-query("tilt", ("lang=en"), 1)

Re: [MarkLogic Dev General] dls:document-manage doesn't work for non-xml files?

2009-09-10 Thread Wayne Feick
It does work on non-XML files. The error indicates that the document "/myDirectory/sample_png_versions/1-sample.png" does not exist. Did you invoke this module before completing the transaction that inserted the document? Wayne. On Thu, 2009-09-10 at 14:45 -0700, Sundar Iyer wrote: > I'm evalu

  1   2   >