Re: [MarkLogic Dev General] Performance about Point In Time Queries

2015-06-25 Thread Stephane Toussaint
Le 17 juin 2015 à 14:38, Stephane Toussaint stephane.toussa...@4dconcept.fr a écrit : Hi, I recently try to use Point In Time Queries as a workaround for « Safe pagination searching in updatable environnement », but encounter some performance issues. Short explanation of what I’ve

[MarkLogic Dev General] Performance about Point In Time Queries

2015-06-17 Thread Stephane Toussaint
Hi, I recently try to use Point In Time Queries as a workaround for « Safe pagination searching in updatable environnement », but encounter some performance issues. Short explanation of what I’ve done so far : - I initiate a search without a particular timestamp which returns the first n

Re: [MarkLogic Dev General] How to ensure an Element Range Index is available (usable)

2013-05-02 Thread Stephane Toussaint
. Stéphane Le 30 avr. 2013 à 21:00, Michael Blakeley m...@blakeley.com a écrit : The admin UI uses xdmp:forest-status and xdmp:forest-counts to build that display. Take a look at Admin/lib/forest-status-form.xqy -- Mike On 30 Apr 2013, at 08:56 , Stephane Toussaint stephane.toussa

[MarkLogic Dev General] How to ensure an Element Range Index is available (usable)

2013-04-30 Thread Stephane Toussaint
Hi, I dynamically compute the options node to propose to the search api. But I can't handle one case. Say I create a new Element Range Index to provide a new facets to my search. If I retrieve Element Range Index information from my database configuration using : import module namespace

Re: [MarkLogic Dev General] How to ensure an Element Range Index is available (usable)

2013-04-30 Thread Stephane Toussaint
alues call will work as soon as the database configuration knows about it. However the results will only reflect the available index entries. That is, the results will be incomplete until reindexing has finished.-- MikeOn 30 Apr 2013, at 07:18 , Stephane Toussaint stephane.toussa...@4dconcept.fr

Re: [MarkLogic Dev General] Something weird with predicates on 6.0-2.1

2013-04-24 Thread Stephane Toussaint
, Stephane Toussaint stephane.toussa...@4dconcept.fr a écrit : For information, a ticket as been open and a bug filed #20581 on this issue. Stéphane Le 22 janv. 2013 à 20:38, Stephane Toussaint stephane.toussa...@4dconcept.fr a écrit : Happy to hear that I'm not going mad ;-) I had

Re: [MarkLogic Dev General] Triggers Handling : Directory scope constraint and collection

2013-02-15 Thread Stephane Toussaint
Sr. Principal Consultant, MarkLogic -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Stephane Toussaint Sent: Friday, February 08, 2013 9:12 AM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev

[MarkLogic Dev General] Triggers Handling : Directory scope constraint and collection

2013-02-08 Thread Stephane Toussaint
Hi, With a trigger defined as in the current Api Documentation (trgr:create-trigger()) xquery version 1.0-ml; import module namespace trgr=http://marklogic.com/xdmp/triggers; at /MarkLogic/triggers.xqy; trgr:create-trigger( myTrigger, Simple trigger example,

Re: [MarkLogic Dev General] Something weird with predicates on 6.0-2.1

2013-01-25 Thread Stephane Toussaint
For information, a ticket as been open and a bug filed #20581 on this issue. Stéphane Le 22 janv. 2013 à 20:38, Stephane Toussaint stephane.toussa...@4dconcept.fr a écrit : Happy to hear that I'm not going mad ;-) I had the very same result on the Unix Server with a 6.0-2.1, as well

Re: [MarkLogic Dev General] Something weird with predicates on 6.0-2.1

2013-01-22 Thread Stephane Toussaint
Yes, but in fact in this case, extra quotes doesn't change anything to this behavior. I can't reproduce this test case on previous ML versions (currently on 6.0-1.1). Seem's to be introduce with the latest version and I guess It could leads to errors. Stéphane Le 22 janv. 2013 à 18:07,

Re: [MarkLogic Dev General] Something weird with predicates on 6.0-2.1

2013-01-22 Thread Stephane Toussaint
a noop. It should test the existence of the document-node, which will always be true. Oddly the last form, using an extra 'let', returns 1 *without* any extra parens. So I don't understand dynamic context as well as I thought. -- Mike On 22 Jan 2013, at 10:21 , Stephane Toussaint

[MarkLogic Dev General] Sort on last-modified property with search API

2012-12-09 Thread Stephane Toussaint
Hi all, I was looking if I had any chance to order a result based on the last-modified property. The point is that it doesn't seem to be a possible use case currently, but I just figure out a facet generation based on the same property from the search:search documentation. options

Re: [MarkLogic Dev General] search:search matching path coherence

2012-07-06 Thread Stephane Toussaint
...@developer.marklogic.com [general-boun...@developer.marklogic.com] On Behalf Of Stephane Toussaint [stephane.toussa...@4dconcept.fr] Sent: Thursday, July 05, 2012 3:46 AM To: MarkLogic Developer Discussion Subject: [MarkLogic Dev General] search:search matching path coherence Hi, I just find something

[MarkLogic Dev General] search:search matching path coherence

2012-07-05 Thread Stephane Toussaint
Hi, I just find something weird with the matching path returned by the search API. Say I have this xml in my repository ?xml version=1.0 encoding=UTF-8? ARTICLE AUTHOR NAMEToussaint/NAME FIRSTNAMEStephane/FIRSTNAME /AUTHOR /ARTICLE If I request this document based on a firstname constraints

Re: [MarkLogic Dev General] bucket lacks @le and @gt

2012-04-05 Thread Stephane Toussaint
Hi, lt and ge are not to be considered as operators. They are attributes used to describe a range of values in order to put them all in one simple bucket range. Can't see a case where we need something different. Maybe you have a simple example. Best Regards, Stephane Le 28 mars 2012 à

Re: [MarkLogic Dev General] search:search() - show phrase results first

2012-03-13 Thread Stephane Toussaint
Hi, Have you let the fast phrase searches index setted ? Have you tried setting the word positions or element word positions index ? The more indexes you reached for matching a query, the best scoring you will have as a result. Regard, Stephane Le 12 mars 2012 à 22:26, Danny Sinang a écrit :

[MarkLogic Dev General] Field lexicon and frequency

2012-03-08 Thread Stephane Toussaint
Hi, I'm looking for a way to retrieve not only words from a lexicon (field lexicon actually) but the number of occurrence as well. I know that this is something easy to do with cts:frequency but only for element or attribute lexicon, not field. My use case is to create a field that store

Re: [MarkLogic Dev General] Field lexicon and frequency

2012-03-08 Thread Stephane Toussaint
...@developer.marklogic.com] Namens Stephane Toussaint Verzonden: donderdag 8 maart 2012 11:52 Aan: General MarkLogic Developer Discussion Onderwerp: [MarkLogic Dev General] Field lexicon and frequency Hi, I'm looking for a way to retrieve not only words from a lexicon (field lexicon actually

Re: [MarkLogic Dev General] Confused with search:suggest

2011-09-11 Thread Stephane Toussaint
suggestions on the phrase, otherwise it treats the tokens separately. Try search:suggest('Robert Lo',$options). From: general-boun...@developer.marklogic.com [general-boun...@developer.marklogic.com] On Behalf Of Stephane Toussaint [stephane.toussa

[MarkLogic Dev General] Confused with search:suggest

2011-09-09 Thread Stephane Toussaint
Hi, Sorry to cross-post this question (originally posted at http://stackoverflow.com/questions/7271464/confused-with-searchsuggest), but I can't always figure out how to achieve this : I'm not able to provided this simple autocompletion feature with the help of the search:suggest function.

Re: [MarkLogic Dev General] Element name suggestion.

2011-06-10 Thread Stephane Toussaint
Stephane Toussaint Verzonden: donderdag 9 juni 2011 21:40 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] Element name suggestion. Hi Danny, Thanks for the explanation. That's what I though, but secretly hopping that I missed something ;-) Best regards

Re: [MarkLogic Dev General] Element name suggestion.

2011-06-09 Thread Stephane Toussaint
on the element or attribute and use that for your lookup (with cts:element-value-match, for example). -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Stephane Toussaint Sent: Wednesday, June 08, 2011 9:03 AM To: General

[MarkLogic Dev General] MarkLogic XQJ state.

2011-06-06 Thread Stephane Toussaint
Hi, I recently read a document[1] which talks about an existing XQJ implementation for Marklogic. But on the download page[2], it is writes that the XQJ API for Marklogic cannot be provided. May someone explains why ? [1] http://www.xqjapi.com/documentation.pdf [2]

Re: [MarkLogic Dev General] How to specified a result root node ?

2011-05-25 Thread Stephane Toussaint
This query return to much nodes. See the sample, the author "my self" should not be returned.ThanksStephLe 25 mai 2011 à 15:31, Fernandes, Nivaldo a écrit :Or this one:let $query := cts:and-query(( cts:element-value-query(xs:QName("title"),"foobar"),

[MarkLogic Dev General] How to specified a result root node ?

2011-05-24 Thread Stephane Toussaint
Hi, I'm trying to specified a result root node for my query in a customizable context. Take this documents for instance (/test/doc1.xml) : ?xml version=1.0 encoding=UTF-8? doc docId=1 xmlns=sto:test titlefoobar/title authors author firstnamestephane/firstname

Re: [MarkLogic Dev General] checking the status of webservice (running or not) using xdmp:http-get

2011-04-28 Thread Stephane Toussaint
If you talk about any server that you access via an http call, the short answer is no, there is no other way than waiting for the timeout. This is how http works.Talking about IP protocols, ICMP is the protocols used to achieve such a goal (test wether a server is accessible or not), but I don't

Re: [MarkLogic Dev General] Customized Xinclude Pipeline : destination-root.

2011-02-25 Thread Stephane Toussaint
Hi Geert,Thank you for your answer.I got everything working now... but I need to track incoming changes on those actions in future. Is there an information source to check this ?Kind regards,StephaneLe 25 févr. 2011 à 10:32, Geert Josten a écrit :Hi Stephane,I am afraid the xinclude expand action

Re: [MarkLogic Dev General] Customized Xinclude Pipeline : destination-root.

2011-02-25 Thread Stephane Toussaint
Hi Geert,Thank you for this information.Kind regards,StephaneLe 25 févr. 2011 à 11:32, Geert Josten a écrit :Hi Stephane,It could be mentioned in the release notes, but not sure. You might consider proposing an enhanced version of the action. You could contact Eric Bloch about that.Kind

Re: [MarkLogic Dev General] Customized Xinclude Pipeline : destination-root.

2011-02-25 Thread Stephane Toussaint
Hi Eric,First of all, I think it is of a great necessity to confirm that my firstname is Stephane, it stands for a male ;-)I was able to update XInclude action to use the full document uri to build the expanded document uri. In fact, has I explain, and behind the simple pattern aspect, the actual

[MarkLogic Dev General] Customized Xinclude Pipeline : destination-root.

2011-02-24 Thread Stephane Toussaint
Hi, I'm giving a try to the CPF XInclude trigger. After reading the documentation destination-root specifies the directory in which the expanded version of documents are saved. This should be a directory path in the database, and the expanded document will be saved to the URI that is the

[MarkLogic Dev General] Hide managed document versions in query result

2011-01-25 Thread Stephane Toussaint
Hi,I start playing a bit with the DLS library because I want to keep an history of version modification.The version management works well but now I'm facing a new problem.My queries aren't returning only the last version matching documents, but every single version matching the current query.Is

Re: [MarkLogic Dev General] Use Trigger to update conditionally adocument

2010-10-05 Thread Stephane Toussaint
Le 5 oct. 2010 à 08:49, Geert Josten a écrit :I guess the easiest way out here is to have a separate upload directory. You will need to scope the trigger to that folder only. The trigger (you could use the Content Processing Framework too by the way, which in the end is based on triggers as well)

[MarkLogic Dev General] Use Trigger to update conditionally a document

2010-10-01 Thread Stephane Toussaint
Hi, I try to achieve the following action : I have a process where documents are inserted in marklogic in batch mode. Some document are reinserted without having change (Same uri and same content). I don't want those documents to have there last-modified property updated. To do so I attempt

Re: [MarkLogic Dev General] Use Trigger to update conditionally a document

2010-10-01 Thread Stephane Toussaint
Kelly, Le 1 oct. 2010 à 16:31, Kelly Stirman a écrit : What is the logic for determining that the document has not changed? Briefly, I have a process where documents (spectacles) are uploaded once a week. Documents may be new, updated (content changes) or same as before (it's a client