Re: [MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results

2016-10-17 Thread David Gorbet
ral@developer.marklogic.com> Subject: Re: [MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results It looks like you try to read a document you inserted in the same transaction. Which is in contradiction with how transactions work on MarkLogic. You can think of it as the following simplifi

Re: [MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results

2016-10-16 Thread Samuel Hood
You sent this to me by mistake. Regards Sam Hood Sent from my iPhone On Oct 16, 2016, at 8:02 AM, Florent Georges > wrote: It looks like you try to read a document you inserted in the same transaction. Which is in contradiction with how

Re: [MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results

2016-10-16 Thread Florent Georges
It looks like you try to read a document you inserted in the same transaction. Which is in contradiction with how transactions work on MarkLogic. You can think of it as the following simplification: all changes to documents (including inserting new ones) are accumulated whilst your code is

[MarkLogic Dev General] search after xdmp.documentInsert() getting 0 results

2016-10-15 Thread Shiv Shankar
Hi, I tried all the possibilities in fetching the results using jsearch.search after using xdmp.documentInsert() ( I used declareUpdate() on top) in CPF process, but resulting no documents in the collection. After this process, when I do same search , I get the results. I used xdmp.commit()