Re: [MarkLogic Dev General] Regarding Expanded tree cache

2016-03-14 Thread Rajamani.Marimuthu
Hi Siva,

Could you share me the exact error message you getting from Log.

By
Raja>>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Mani, 
Sivasubramani (ELS)
Sent: Monday, March 14, 2016 3:24 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Regarding Expanded tree cache

Hi Raja,

The cache configurations are same in previous version as well as upgraded 
version.

Thanks & Regards,
Siva

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of 
general-requ...@developer.marklogic.com
Sent: Monday, March 07, 2016 8:00 PM
To: general@developer.marklogic.com
Subject: General Digest, Vol 141, Issue 13

Send General mailing list submissions to
general@developer.marklogic.com

To subscribe or unsubscribe via the World Wide Web, visit
http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
general-requ...@developer.marklogic.com

You can reach the person managing the list at
general-ow...@developer.marklogic.com

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of General digest..."


Today's Topics:

   1. Regarding Expanded tree cache (Mani, Sivasubramani (ELS))
   2. Re: XPath 3.0 operators in XSLT (David Sewell)
   3. Re: XPath 3.0 operators in XSLT (Mary Holstege)


--

Message: 1
Date: Mon, 7 Mar 2016 04:13:26 +
From: "Mani, Sivasubramani (ELS)" 
Subject: [MarkLogic Dev General] Regarding Expanded tree cache
To: "general@developer.marklogic.com"

Message-ID:



Content-Type: text/plain; charset="us-ascii"

Hi Team,

The configurations are same in previous version as well as upgraded version. 
Also I have the support log but I don't know how to send it to the forum


Thanks & Regards,
Siva




-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of 
general-requ...@developer.marklogic.com
Sent: Friday, March 04, 2016 8:00 PM
To: general@developer.marklogic.com
Subject: General Digest, Vol 141, Issue 5

Send General mailing list submissions to
general@developer.marklogic.com

To subscribe or unsubscribe via the World Wide Web, visit
http://developer.marklogic.com/mailman/listinfo/general
or, via email, send a message with subject or body 'help' to
general-requ...@developer.marklogic.com

You can reach the person managing the list at
general-ow...@developer.marklogic.com

When replying, please edit your Subject line so it is more specific than "Re: 
Contents of General digest..."


Today's Topics:

   1. Re: Regarding Expanded tree cache full error
  (rajamani.marimu...@cognizant.com)
   2. Re: Regarding Expanded tree cache full error (Florent Georges)


--

Message: 1
Date: Fri, 4 Mar 2016 10:51:22 +
From: 
Subject: Re: [MarkLogic Dev General] Regarding Expanded tree cache
full error
To: 
Message-ID:
<122019794b1a814483856cd4d052882a01cc1...@ctsinchnsxmbu.cts.com>
Content-Type: text/plain; charset="us-ascii"

Did you check with cache configurations are same in both versions .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Mani, 
Sivasubramani (ELS)
Sent: Friday, March 04, 2016 4:14 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Regarding Expanded tree cache full error


Hi Team,

Currently we have upgraded the MarkLogic  from old environment to new one (i.e 
ML 7.0-5.4). After the upgrade while running the reports with larger chunk size 
(i.e. 4) we get Expanded tree cache full error but for the same we didn't 
get any error's in earlier version of the MarkLogic. Kindly guide us how to 
resolve this issue.


Thanks & Regards,
Siva

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://developer.marklogic.com/pipermail/general/attachments/20160304/9436df86/attachment-0001.html

--

Message: 2
Date: Fri, 4 Mar 2016 12:

Re: [MarkLogic Dev General] Regarding Expanded tree cache full error

2016-03-04 Thread Rajamani.Marimuthu
Did you check with cache configurations are same in both versions .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Mani, 
Sivasubramani (ELS)
Sent: Friday, March 04, 2016 4:14 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Regarding Expanded tree cache full error


Hi Team,

Currently we have upgraded the MarkLogic  from old environment to new one (i.e 
ML 7.0-5.4). After the upgrade while running the reports with larger chunk size 
(i.e. 4) we get Expanded tree cache full error but for the same we didn't 
get any error's in earlier version of the MarkLogic. Kindly guide us how to 
resolve this issue.


Thanks & Regards,
Siva

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] FW: Base content schema change

2016-02-10 Thread Rajamani.Marimuthu
Hi Team,

Any suggestion really a helpful for us.

By
Raja >>>

From: Marimuthu, Rajamani (Cognizant)
Sent: Tuesday, February 09, 2016 3:27 PM
To: general@developer.marklogic.com
Subject: Base content schema change

Hi Team,

  We have one unique base document schema change plan. I will explain the 
existing scenario and an expected scenario . Kindly give some feedback about 
the changes .


1.   We have document content in one xml file and all properties [meta 
data] in contents properties[~100 to 150 elements].

2.   We have plan to merge into single XML file [content and relevant 
properties] and default properties only will present in content properties 
[like last-modified].

3.   So we have the plan to maintain following XML structure post merge of 
the content as well as properties

   
  


The above one is sample structure , the actual content element names will vary 
with correct meaning

4.   How effective the above structure . Kindly need your feedback to go 
further in this change .


Thanks and regards
Raja >>>



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Base content schema change

2016-02-09 Thread Rajamani.Marimuthu
Hi Team,

  We have one unique base document schema change plan. I will explain the 
existing scenario and an expected scenario . Kindly give some feedback about 
the changes .


1.   We have document content in one xml file and all properties [meta 
data] in contents properties[~100 to 150 elements].

2.   We have plan to merge into single XML file [content and relevant 
properties] and default properties only will present in content properties 
[like last-modified].

3.   So we have the plan to maintain following XML structure post merge of 
the content as well as properties

   
  


The above one is sample structure , the actual content element names will vary 
with correct meaning

4.   How effective the above structure . Kindly need your feedback to go 
further in this change .


Thanks and regards
Raja >>>

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Displaying result in html page: Mark Logic - reg

2016-02-08 Thread Rajamani.Marimuthu
Hi Subramani,


Change  your code into following .

for $doc at $index in $docs[1 to 20]
return


{
let $title:=$doc//title
return concat($index," ",$title/text())
}





From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Subramani 
Shanmugaraju 03
Sent: Monday, February 08, 2016 3:52 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Displaying result in html page: Mark Logic - 
reg

Hi All,

I created two html pages - one is to perform a search and another one is to 
display the result.

I am getting search words from user in first html page and passing it to the 
next page where I am using cts query to perform search in the database.

In the second html page (testclient-results.xqy), I am using the below code to 
display index number followed by a space and then followed by document title.

for $doc at $index in $docs[1 to 20]
return


{
let $title:=$doc//title
return concat($index," ",$title[1])
}



But I am not able to display the document title using the above code. When I am 
using return concat($index," ",$doc), I am getting whole document in the result 
page.

Am I missing something here? Please guide me.

Thanks,
Subramani
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] XML entity reference not working in xdmp:unquote

2016-02-03 Thread Rajamani.Marimuthu
Hi Florent Georges,

Thanks for your quick reply. Yes, we are trying to avoid such entity characters 
in input content itself .

By
Raja >>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges
Sent: Wednesday, February 03, 2016 4:53 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] XML entity reference not working in 
xdmp:unquote

The option "repair-full" tries to recover from parsing errors (errors that all 
XML parsers must throw, as per the XML REC).  It is then outside the scope of 
standard XML, and I would try to avoid it if possible.

The rule of thumb is: fix your input if it is not XML, it will save you much 
trouble.

Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 3 February 2016 at 12:18, ? wrote:
> Hi Florent Georges,
>
> Yes, you are correct . the single & is working fine with repair-full 
> option . That's why am confused for < with repair-full is not working.
>
>
> By
> Raja>>>
>
> -Original Message-
> From: general-boun...@developer.marklogic.com 
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges
> Sent: Wednesday, February 03, 2016 4:40 PM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] XML entity reference not working in 
> xdmp:unquote
>
> Hi,
>
> It is less surprising is you inspect what's in the string.  If you write '<', 
> the string contains 1 character, which is '<'.  Another way to obtain the 
> same string is to write '<'.  This produces a string containing 1 
> character, which is '<'.
>
> Which means that $data contains a text node, the value of which is ill-formed 
> XML.  Almost XML, but for the extra '<' before the closing tag ''.
>
> To be honest, I am surprised the '&' does not throw an error.  It is 
> resolved to a simple '&' in the string.  When you try to parse that, that is 
> an XML parsing error.  Probably "repair-full" makes it pass.
>
> If you really want the string to contain valid predefined entities, in order 
> to have a string which is well-formed lexical XML, then you need to escape 
> them in XQuery:
>
> xdmp:unquote(
>'
>XML Entity reference Test
>XML entity 1. & 
>XML entity 2. ' 
>XML entity 3. " 
>XML entity 4. > 
>XML entity 5. < 
> ')
>
> Regards,
>
> --
> Florent Georges
> http://fgeorges.org/
> http://h2oconsulting.be/
>
>
> On 3 February 2016 at 09:24, ? wrote:
>> Hi Team,
>>
>>
>>
>> Today am facing some strange behavior in xdmp:unquote function. I tested the
>> below sample code . it’s returning error for entity reference <, but
>> remaing 4 working fine. Is this expected bug in ML. or am I missing
>> something in the code.
>>
>>
>>
>> let $data := text{'
>>
>>   XML Entity reference Test
>>
>>   XML entity 1. & 
>>
>>   XML entity 2. ' 
>>
>>   XML entity 3. " 
>>
>>   XML entity 4. > 
>>
>>   XML entity 5. < 
>>
>>  '}
>>
>>
>>
>> return
>>
>> xdmp:unquote(fn:concat("> =""preserve"">",$data,""),"",("repair-full"))
>>
>>
>>
>> the XML content coming as string , so we are using this unquote function to
>> make it as XML content. Kindly help on this issue .
>>
>>
>>
>> By
>>
>> Raja>>>
>>
>>
>>
>> This e-mail and any files transmitted with it are for the sole use of the
>> intended recipient(s) and may contain confidential and privileged
>> information. If you are not the intended recipient(s), please reply to the
>> sender and destroy all copies of the original message. Any unauthorized
>> review, use, disclosure, dissemination, forwarding, printing or copying of
>> this email, and/or any action taken in reliance on the contents of this
>> e-mail is strictly prohibited and may be unlawful. Where permitted 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
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
> This e-mail and any files transmitted with it are for the sole use of the 
> intended recipient(s) and may contain confidential and privileged 
> information. If you are not the intended recipient(s), please reply to the 
> sender and destroy all copies of the original message. Any unauthorized 
> review, use, disclosure, dissemination, forwarding, printing or copying of 
> this email, and/or any action taken in reliance on the contents of this 
> e-mail is s

Re: [MarkLogic Dev General] XML entity reference not working in xdmp:unquote

2016-02-03 Thread Rajamani.Marimuthu
Hi Florent Georges,

Yes, you are correct . the single & is working fine with repair-full option 
. That's why am confused for < with repair-full is not working.


By
Raja>>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges
Sent: Wednesday, February 03, 2016 4:40 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] XML entity reference not working in 
xdmp:unquote

Hi,

It is less surprising is you inspect what's in the string.  If you write '<', 
the string contains 1 character, which is '<'.  Another way to obtain the same 
string is to write '<'.  This produces a string containing 1 character, 
which is '<'.

Which means that $data contains a text node, the value of which is ill-formed 
XML.  Almost XML, but for the extra '<' before the closing tag ''.

To be honest, I am surprised the '&' does not throw an error.  It is 
resolved to a simple '&' in the string.  When you try to parse that, that is an 
XML parsing error.  Probably "repair-full" makes it pass.

If you really want the string to contain valid predefined entities, in order to 
have a string which is well-formed lexical XML, then you need to escape them in 
XQuery:

xdmp:unquote(
   '
   XML Entity reference Test
   XML entity 1. & 
   XML entity 2. ' 
   XML entity 3. " 
   XML entity 4. > 
   XML entity 5. < 
')

Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 3 February 2016 at 09:24, ? wrote:
> Hi Team,
>
>
>
> Today am facing some strange behavior in xdmp:unquote function. I tested the
> below sample code . it’s returning error for entity reference <, but
> remaing 4 working fine. Is this expected bug in ML. or am I missing
> something in the code.
>
>
>
> let $data := text{'
>
>   XML Entity reference Test
>
>   XML entity 1. & 
>
>   XML entity 2. ' 
>
>   XML entity 3. " 
>
>   XML entity 4. > 
>
>   XML entity 5. < 
>
>  '}
>
>
>
> return
>
> xdmp:unquote(fn:concat(" =""preserve"">",$data,""),"",("repair-full"))
>
>
>
> the XML content coming as string , so we are using this unquote function to
> make it as XML content. Kindly help on this issue .
>
>
>
> By
>
> Raja>>>
>
>
>
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful. Where permitted 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
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] XML entity reference not working in xdmp:unquote

2016-02-03 Thread Rajamani.Marimuthu
Hi Team,

Today am facing some strange behavior in xdmp:unquote function. I tested the 
below sample code . it's returning error for entity reference <, but remaing 
4 working fine. Is this expected bug in ML. or am I missing something in the 
code.

let $data := text{'
  XML Entity reference Test
  XML entity 1. & 
  XML entity 2. ' 
  XML entity 3. " 
  XML entity 4. > 
  XML entity 5. < 
 '}

return
xdmp:unquote(fn:concat("",$data,""),"",("repair-full"))

the XML content coming as string , so we are using this unquote function to 
make it as XML content. Kindly help on this issue .

By
Raja>>>

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] cts:element-range-query

2016-01-21 Thread Rajamani.Marimuthu
Hi  Pragya,

I don't  think ,you can use the below format for date range comparison . Better 
you have same date details in attribute too. So , simply you can setup element 
attribute range index with integer option then try the following code . It will 
work.


let $fromDate := ("2011-03-04")
let $toDate := ("2011-06-08")
let $docs := cts:search(fn:doc()/DocumentList/Document,
   cts:and-query((

cts:element-attribute-range-query(xs:QName("Date"),xs:QName("Year"), 
">=",xs:int(substring($fromDate,1,4))),
 
cts:element-attribute-range-query(xs:QName("Date"),xs:QName("Year"), 
"<=",xs:int(substring($toDate,1,4))),
 
cts:element-attribute-range-query(xs:QName("Date"),xs:QName("Month"), 
">=",xs:int(substring($fromDate,6,2))),
 
cts:element-attribute-range-query(xs:QName("Date"),xs:QName("Month"), 
"<=",xs:int(substring($toDate,6,2))),
 
cts:element-attribute-range-query(xs:QName("Date"),xs:QName("Day"), 
">=",xs:int(substring($fromDate,9,2))),
 
cts:element-attribute-range-query(xs:QName("Date"),xs:QName("Day"), 
"<=",xs:int(substring($toDate,9,2)))
))
  )
return $docs


By
Raja>>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Thursday, January 21, 2016 2:52 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] cts:element-range-query




Hi,



I need to query an element(Date) using cts:element-range-query, but the value 
this element(Date) is in different format.




2011 Mar 04






query :


  let $fromDate := xs:date("2011-04-08")
  let $toDate := xs:date("2011-06-08")
  let $docs := cts:search(fn:doc("/misc/DocList.xml")/DocumentList/Document,
   cts:and-query((
cts:element-range-query(xs:QName("Date"), 
"<=",$fromDate),
 cts:element-range-query(xs:QName("Date"), ">=",$toDate)
))
  )
 return $docs


How can run this query or I need to use some other api?



Thanks

Pragya


"This e-mail and any attachments transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential , proprietary or 
privileged information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this e-mail or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful."
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Data sync up within ML clusters in different zones

2016-01-21 Thread Rajamani.Marimuthu
Hi Prakash,

So, do you want to implement Multi-master replication across these three 
clusters. If that is the case then there is no direct approach in ML, but, 
still you have options to implement your scenario using flexible replication 
concepts .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Prakashkumar Patel
Sent: Thursday, January 21, 2016 1:44 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Data sync up within ML clusters in 
different zones

Hi David,

We are supporting a content publishing system where in there are writers who 
inputs a story which passes through a document work flow where editors updates 
the story and creates a version of story that get published at the end in the 
newsletter. These newsletters are published on a daily basis. The writers and 
editors are spread across different geographical regions and it is the latency 
of the application that we need to have three active data centers.

Please find my comments to yours questions below.

Thanks,
Prakash

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of David Gorbet
Sent: Wednesday, January 20, 2016 10:51 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Data sync up within ML clusters in 
different zones

Some questions:

* Is this database insert-only or does it also allow updates?

? It allows updates as well

* If it allows updates, are those updates mastered in one of the three 
locations for a given document, or is it possible for any location to update 
any document at any time?

? It is possible for any location to update any document any time.

* If it's possible for multiple locations to update the same document 
at the same time, what are the business rules for resolving conflicts?

? Currently we have only one data center in USA which takes care of all the 
traffic with lots of Singapore users complains regarding the slowness.

* When you query, do you need to ensure a consistent view across data 
in all three locations (even if that means it's only up to date with respect to 
the slowest location), or do you want an inconsistent view, but one that has 
the most recent data from each location?

? We want a consistent view across data in all the three locations.

In general, anything you can tell us about the application could shed light on 
the query and update patterns would help, including why you want three active 
data centers in the first place (is it latency of the application, or something 
else?



From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Prakashkumar 
Patel
Sent: Wednesday, January 20, 2016 6:03 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Data sync up within ML clusters in different 
zones

Hi,

We are using Marklogic 7 and we are having three different ML clusters which 
are all primary in USA, UK and Singapore. They are all supporting the same 
application that inserts data into those clusters. Data in all the three 
clusters has to be same. For example if there is a document insert in USA 
cluster, it has to be inserted in UK and Singapore clusters as well. Same 
applies for any document delete. And all the three cluster has to have the most 
latest version of a document if that is getting updated frequently.

Is there any feature in Marklogic that enables us to do this? If not, is there 
any best practice that you will suggest us to follow?

Thanks,
Prakash


=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.

Re: [MarkLogic Dev General] Regarding Error

2016-01-20 Thread Rajamani.Marimuthu
Hi Siva,

 Try to use s3:/// instead of two slashes . similar kind of issues were found 
in the ML community and some one suggested this approach. But am not sure it 
will work or not .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Mani, 
Sivasubramani (ELS)
Sent: Wednesday, January 20, 2016 5:10 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Regarding Error

Dear team,

I am going to upgrade the Marklogic from old environment to new one (i.e ML 7) 
for that I have created parallel environment and take the backup of the 
database from the old one. while taking  the backup I got the following error.

2016-01-20 09:10:10.554 Error: Backup of forest consynContentForest-4 to 
s3://consyn-backups/prod/database/consynContentDB/20160120-0605370336930, 
jobid=1649682918792394744 failed: SVC-S3ERR: S3 error: PUT 52428800 
http://consyn-backups.s3-eu-west-1.amazonaws.com/prod/database/consynContentDB/20160120-0605370336930/Forests/consynContentForest-4/00013582/ListData?partNumber=868&uploadId=HnRutUfwJwYrj5i0NPVT1G4zrDwsIDkIx3dbHkPWHK3UJuaEGrHjntZwFP1CTLImzZXfzrlj.0OUmu..HftmiT3HbMuZN0a_Pbqn3gTHVNLinQHjMl1lv.iJrlaxeRntPhlYUa6YKdtSyPxdOfFB1g--
 400 Bad Request

Kindly resolve the issue as soon as possible because we are go ahead with 
production based on your advice.


Thanks & Regards,
Siva

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Custom JSON objects

2016-01-19 Thread Rajamani.Marimuthu
Hi,

Your code is working fine and getting expected result . Could you please tell 
me what version of ML  u r using.

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kari Cowan
Sent: Tuesday, January 19, 2016 5:37 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Custom JSON objects

Just returning to this, I wanted to try constructing the map, but instead of 
getting back the values, I get back the document URI and path to the node.
Not what I expected.  What am I doing wrong?

let $outputSimpleJSON:=

  for $doc in $search-this-partner/event (: there are 3 records in this set :)

let $theEvent:= $doc//EventTitle
let $theStartDate:=$doc/EventStartDate

  let $map := map:new((
map:entry("EventTitle", $theEvent),
map:entry("EventStartDate", $theStartDate)
  ))

return xdmp:to-json($map)

>>

{"EventStartDate":"fn:doc(\"\/data-sources\/events\/Akira_7877013.xml\")\/event\/EventStartDate",
 
"EventTitle":"fn:doc(\"\/data-sources\/events\/Akira_7877013.xml\")\/event\/EventTitle"}

{"EventStartDate":"fn:doc(\"\/data-sources\/events\/TheDayTheEarthStoodStillMarch08,2017.xml\")\/event\/EventStartDate",
 
"EventTitle":"fn:doc(\"\/data-sources\/events\/TheDayTheEarthStoodStillMarch08,2017.xml\")\/event\/EventTitle"}

{"EventStartDate":"fn:doc(\"\/data-sources\/events\/Solaris_956351.xml\")\/event\/EventStartDate",
 
"EventTitle":"fn:doc(\"\/data-sources\/events\/Solaris_956351.xml\")\/event\/EventTitle"}



From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Joe Bryan
Sent: Monday, December 14, 2015 11:08 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Custom JSON objects

Hi Kari,

You can use the "custom" strategy with json:config(): 
http://docs.marklogic.com/json:config. There are lots of options that can be 
specified to control the transformation(for instance, "ignore-attribute-names").

Alternately, you can manipulate the resulting JSON object, or even code your 
own transformation. One of the simplest ways to implement your own 
transformation is to construct nested maps from the data you want, and then 
convert the map to json:

let $map := map:new((
  map:entry("key", "value"),
  map:entry("anotherKey", "a different value")
))
return xdmp:to-json($map)

Thanks.

-jb

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Kari Cowan mailto:kco...@alm.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, December 14, 2015 at 1:42 PM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Custom JSON objects

I had a question from someone on my team if it's possible to return a more 
simplified version JSON without child and attributes.

For example, compare Events JSON object:

http://data.smartlitigator.com/EventTools/GetEventsTable?display=New+York+Law+Journal|returnType=JSON

To this:

http://data.smartlitigator.com/QuestV2/Search/?query=law&publication=§ion=&orgType=&elementType=&articleType=&practiceArea=&virtualPracticeArea=&subject=&industry=&source=lawcom&almStaff=&lawTopic=&fromDateTime=&toDateTime=&fromDate=1985-01-01&toDate=2015-11-07&start=1&end=10&sort=rank&direction=descending&returnType=falcon_json&callback=


Events, simply contructed snippet:

let $outputJSON:=("{"events":[",
  let $config := json:config("full"),
  $cx := map:put( $config, "whitespace", "ignore" )
  return fn:string-join(
for $doc at $counter in $search-this-partner/event
order by $doc/EventStartDate/@date descending
return xdmp:quote(json:transform-to-json($doc, $config)),","),
"]}")


Is it possible to specify which nodes and the format I want to convert, still 
using transform-to-json, or do I need to write a custom output myself?



Learn more about ALM, visit http://www.alm.com . - ALM, an Integrated Media 
Company, is a leading provider of news and information for the legal and 
commercial real estate markets. ALM's market-leading brands include The 
American Lawyer, Corporate Counsel, GlobeSt.com, Insight Conferences, Law.com, 
Law Journal Press, LegalTech, The National Law Journal and Real Estate Forum.

Learn more about ALM, visit http://www.alm.com . - ALM, an Integrated Media 
Company, is a leading provider of news and information for the legal and 
commercial real estate markets. ALM's market-leading brands include The 
American Lawyer, Corporate Counsel, GlobeSt.com, Insight Conferences, Law.com, 
Law Journal Press, LegalTech, The National Law Journal and Real Estate Forum.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain 

Re: [MarkLogic Dev General] cts:uris

2016-01-18 Thread Rajamani.Marimuthu
HI Pragya,

You can try with cts:uri-match("/doc/") instead of cts:uris() function.

By
Raja>>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Ken Tune
Sent: Monday, January 18, 2016 5:24 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] cts:uris

Pragya

Argument 1, $start is defined as below
$start

A starting value. Return only this value and following values. If the empty 
string, return all values. If the parameter is not in the lexicon, then it 
returns the values beginning with the next value.

So cts:uris returns every uri that alphabetically succeeds the value supplied.

If you want what's in /docs/ only, you're probably best supplying 
cts:directory-query("/docs/")  as the third argument to cts:uris - this 
argument constrains the results by query.

Ken Tune


From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: 18 January 2016 11:40
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] cts:uris




Hi,



When I am querying the DB (uri lexicon enable) using cts:uris("/docs/").

I am getting uris starting from /docs/ which is correct , but why I am getting 
the below uris:


/documents/Bilateral Form.031-csa.xml
string 
/documents/Bilateral Form.033-CSA US94docx.xml
string 
/documents/Bilateral Form.621 CSA GB95docx.xml
string 
/documents/CSA_038.xml
string 
/documents/DataModel_MAG031.xml
string 
/documents/MAG033.xml
string 
/documents/MAG038.xml
string 
/foo/bar/baz.xml
string 
/foo/bar/baz_xml_versions/
string 
/foo/bar/baz_xml_versions/1-baz.xml
string 
/foo/bar/baz_xml_versions/2-baz.xml
string 
/foo/bar/baz_xml_versions/3-baz.xml
string 
/metadata/MAG_006.xml
string 
/misc/DF2Config.xml
string 
/misc/DF2Label.xml
string 
/misc/DocEvents.xml
string 
/misc/DocList.xml
string 
/misc/DocListExtra.xml
string 
/misc/DocLoadOperations.xml
string 
/misc/EMIRLabel.xml
string 
/misc/Groups.xml
string 
/misc/Enumerations.xsd
string 
/misc/PhysicalDoclist.xml
string 
/misc/ReportSpreadsheet.xml
string 
/misc/ReportSpreadsheetSelections_TEST.xml
string 
/misc/SavedQueries.xml
string 
/misc/SavedTextSearches.xml
string 
/misc/SiteConfig.xml
string 
/misc/UserLogs.xml
string 
/preprossesing/docs/0001-4043.xml
string 
fragmented.xml
string 
http://marklogic.com/dls/retention-rules.xml

Please let me know, what I am doing incorrectly.

Thanks
Pragya
"This e-mail and any attachments transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential , proprietary or 
privileged information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this e-mail or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful."
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Facets on properties in ML4.2

2016-01-08 Thread Rajamani.Marimuthu
Hi Geert,

It's really a helpful information .But , in my case lot of restrictions are 
there .


1.   The search:search function directly called in XQuery code[ not by REST 
api] with all search criteria mentioned in advanced Query part of  options 
section

Like search:search("",$options,$start,$count)

2.   Property elements are not range indexed - especially needed for facets 
.

3.   But, no other alternative options available like fragment-scope kind 
of things in ML4.2.

Need to implement totally 10 faceted elements . If custom constrain is the only 
option then - need to write lot of extra code to achieve the requirement .  So, 
based on above limitations ,still is it possible to achieve my clients 
requirement Kindly suggest .


By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 6:03 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

The parse/parse-structured are called when you have a search string that 
contains a prefix that refers to your custom constraint. So if you have a 
constraint name 'foo', and you search for "foo:bar", parse is used to convert 
foo:bar into an actual query to constrain search results. Whether the library 
will call parse or parse-structured, that depends on how you use the search 
library. REST api always triggers parse-structured, a direct call to 
search:search triggers parse if I am not mistaken. If you are using REST api, 
you shouldn't need the parse, just refer to parse-structured.

Start-facet is executed in parallel if I am not mistaken, so it should run 
across the cluster. The finish-facet gathers the results, and just converts the 
results from lexicon lookups into xml that is included in the search response. 
The example from the docs already includes a finish-facet, and I thought you 
don't need to change it, or maybe only limited.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 1:19 PM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Geert ,

Thanks for the quick reply , what about the parse and finish-facet parts . Am 
really confused about this custom constraints . If possible kindly give me some 
sample code for properties.

By
Raja >>>

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 5:30 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

Yes, I think so, provided custom constraints were supported in that version. 
Here an example:

http://docs.marklogic.com/guide/search-dev/search-api#id_66428

It makes uses of geospatial lexicon 'values' (boxes), but just replace 
cts:element-pair-geospatial-boxes in start-facet with cts:element-values (with 
a properties options), and you should be pretty close to what you are looking 
for. Then for the actual searching, you need to change parse-structured to 
return a cts:element-range-query..

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 12:50 PM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Geert,

Am aware about that fragment-scope option in search constraints ,but it's 
available from ML 5 onwards . So, no luck from that. Is that possible to use 
custom constraint to achieve my requirement .

By
Raja >>>

From:general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 3:29 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

If I am not mistaken, ML 4.2 supports the search API, with functions like 
search:search and such. You can define search constraints in your search 
options, and provide a fragment-scope in them. You can provide that on 
top-level, like shown here: 
http://docs.marklogic.com/guide/search-dev/appendixa#id_92359, but also within 
constraints, either directly b

Re: [MarkLogic Dev General] Facets on properties in ML4.2

2016-01-08 Thread Rajamani.Marimuthu
HI Geert,

And one more thing, The given property elements are not configured for element 
range indexes.  So, in that case this  cts:element-values functions will not 
work .this function requires given element should range indexed . Without that 
how will I implement .


By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 5:30 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

Yes, I think so, provided custom constraints were supported in that version. 
Here an example:

http://docs.marklogic.com/guide/search-dev/search-api#id_66428

It makes uses of geospatial lexicon 'values' (boxes), but just replace 
cts:element-pair-geospatial-boxes in start-facet with cts:element-values (with 
a properties options), and you should be pretty close to what you are looking 
for. Then for the actual searching, you need to change parse-structured to 
return a cts:element-range-query..

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 12:50 PM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Geert,

Am aware about that fragment-scope option in search constraints ,but it's 
available from ML 5 onwards . So, no luck from that. Is that possible to use 
custom constraint to achieve my requirement .

By
Raja >>>

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 3:29 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

If I am not mistaken, ML 4.2 supports the search API, with functions like 
search:search and such. You can define search constraints in your search 
options, and provide a fragment-scope in them. You can provide that on 
top-level, like shown here: 
http://docs.marklogic.com/guide/search-dev/appendixa#id_92359, but also within 
constraints, either directly below the constraint element, or within the range 
element.

I am not sure whether fragment-scope was supported in the early version of 
Search API in 4.2 as it was still pretty new back then, but that is how you 
would do it with MarkLogic 8.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 9:32 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Justin,

  Thanks for the reply mail . Yes we are using ML4.2 version but, we are 
preparing the migration from 4.2 to latest 8.* version very soon.
   But, right now - we don't have any document content change plan- so I need 
to implement the expected facet on properties files. Am really clueless about 
this custom constraint on properties for facets.
  So, are you saying - value constraint can help to create facets on properties 
. Here "envelop original content and properties" meant - am I want to save both 
in single XML file. Could you please give little more points about this 
implementation .

Or if that is not possible with existing content and properties in ML4.2 then 
what is the alternative method for the same . Kindly appreciate your timely 
support .

By
Raja >>>

From:general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig
Sent: Thursday, January 07, 2016 11:20 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Are you really running MarkLogic 4.2? This is ancient. You should plan to 
upgrade as soon as feasible. It will be very difficult for the community or 
MarkLogic Support to assist you with this version. The most recent version is 
8.0-4.

It is possible to facet on properties. cts:values has an option that allows you 
include values from properties fragments. (Or cts:element-values in 4.2.) 
However, in general, I'd advise against properties fragments. Because they are 
separate from document fragments, properties require extra work to join at 
query time. If you don't want to change/enrich your actual document content you

Re: [MarkLogic Dev General] Facets on properties in ML4.2

2016-01-08 Thread Rajamani.Marimuthu
Hi Geert ,

Thanks for the quick reply , what about the parse and finish-facet parts . Am 
really confused about this custom constraints . If possible kindly give me some 
sample code for properties.

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 5:30 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

Yes, I think so, provided custom constraints were supported in that version. 
Here an example:

http://docs.marklogic.com/guide/search-dev/search-api#id_66428

It makes uses of geospatial lexicon 'values' (boxes), but just replace 
cts:element-pair-geospatial-boxes in start-facet with cts:element-values (with 
a properties options), and you should be pretty close to what you are looking 
for. Then for the actual searching, you need to change parse-structured to 
return a cts:element-range-query..

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 12:50 PM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Geert,

Am aware about that fragment-scope option in search constraints ,but it's 
available from ML 5 onwards . So, no luck from that. Is that possible to use 
custom constraint to achieve my requirement .

By
Raja >>>

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 3:29 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

If I am not mistaken, ML 4.2 supports the search API, with functions like 
search:search and such. You can define search constraints in your search 
options, and provide a fragment-scope in them. You can provide that on 
top-level, like shown here: 
http://docs.marklogic.com/guide/search-dev/appendixa#id_92359, but also within 
constraints, either directly below the constraint element, or within the range 
element.

I am not sure whether fragment-scope was supported in the early version of 
Search API in 4.2 as it was still pretty new back then, but that is how you 
would do it with MarkLogic 8.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 9:32 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Justin,

  Thanks for the reply mail . Yes we are using ML4.2 version but, we are 
preparing the migration from 4.2 to latest 8.* version very soon.
   But, right now - we don't have any document content change plan- so I need 
to implement the expected facet on properties files. Am really clueless about 
this custom constraint on properties for facets.
  So, are you saying - value constraint can help to create facets on properties 
. Here "envelop original content and properties" meant - am I want to save both 
in single XML file. Could you please give little more points about this 
implementation .

Or if that is not possible with existing content and properties in ML4.2 then 
what is the alternative method for the same . Kindly appreciate your timely 
support .

By
Raja >>>

From:general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig
Sent: Thursday, January 07, 2016 11:20 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Are you really running MarkLogic 4.2? This is ancient. You should plan to 
upgrade as soon as feasible. It will be very difficult for the community or 
MarkLogic Support to assist you with this version. The most recent version is 
8.0-4.

It is possible to facet on properties. cts:values has an option that allows you 
include values from properties fragments. (Or cts:element-values in 4.2.) 
However, in general, I'd advise against properties fragments. Because they are 
separate from document fragments, properties require extra work to join at 
query time. If you don't want to change/enrich your actual document content you 
can use an envelope to "wrap" your documents:


  ...
  ...


This has 

Re: [MarkLogic Dev General] Facets on properties in ML4.2

2016-01-08 Thread Rajamani.Marimuthu
Hi Geert,

Am aware about that fragment-scope option in search constraints ,but it's 
available from ML 5 onwards . So, no luck from that. Is that possible to use 
custom constraint to achieve my requirement .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Friday, January 08, 2016 3:29 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Raja,

If I am not mistaken, ML 4.2 supports the search API, with functions like 
search:search and such. You can define search constraints in your search 
options, and provide a fragment-scope in them. You can provide that on 
top-level, like shown here: 
http://docs.marklogic.com/guide/search-dev/appendixa#id_92359, but also within 
constraints, either directly below the constraint element, or within the range 
element.

I am not sure whether fragment-scope was supported in the early version of 
Search API in 4.2 as it was still pretty new back then, but that is how you 
would do it with MarkLogic 8.

Kind regards,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
"rajamani.marimu...@cognizant.com" 
mailto:rajamani.marimu...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Friday, January 8, 2016 at 9:32 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Hi Justin,

  Thanks for the reply mail . Yes we are using ML4.2 version but, we are 
preparing the migration from 4.2 to latest 8.* version very soon.
   But, right now - we don't have any document content change plan- so I need 
to implement the expected facet on properties files. Am really clueless about 
this custom constraint on properties for facets.
  So, are you saying - value constraint can help to create facets on properties 
. Here "envelop original content and properties" meant - am I want to save both 
in single XML file. Could you please give little more points about this 
implementation .

Or if that is not possible with existing content and properties in ML4.2 then 
what is the alternative method for the same . Kindly appreciate your timely 
support .

By
Raja >>>

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig
Sent: Thursday, January 07, 2016 11:20 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Are you really running MarkLogic 4.2? This is ancient. You should plan to 
upgrade as soon as feasible. It will be very difficult for the community or 
MarkLogic Support to assist you with this version. The most recent version is 
8.0-4.

It is possible to facet on properties. cts:values has an option that allows you 
include values from properties fragments. (Or cts:element-values in 4.2.) 
However, in general, I'd advise against properties fragments. Because they are 
separate from document fragments, properties require extra work to join at 
query time. If you don't want to change/enrich your actual document content you 
can use an envelope to "wrap" your documents:


  ...
  ...


This has the advantage of segregating the metadata (properties) and data, but 
also colocates them in the same fragment, reducing the work that queries will 
have to do.

Justin


On Jan 7, 2016, at 1:35 AM, 
rajamani.marimu...@cognizant.com wrote:

Hi Team,

  We are trying to implement facets from various property elements in ML4.2 
version . Is that possible. Like

  Search term :  "sample" present in content body
  Facets : on some properties like : author, geography   etc. from document 
properties . Kindly appreciate if have some sample custom constraint or similar 
options

By
Raja >>>
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of

Re: [MarkLogic Dev General] Facets on properties in ML4.2

2016-01-08 Thread Rajamani.Marimuthu
Hi Justin,

  Thanks for the reply mail . Yes we are using ML4.2 version but, we are 
preparing the migration from 4.2 to latest 8.* version very soon.
   But, right now – we don’t have any document content change plan- so I need 
to implement the expected facet on properties files. Am really clueless about 
this custom constraint on properties for facets.
  So, are you saying – value constraint can help to create facets on properties 
. Here “envelop original content and properties” meant – am I want to save both 
in single XML file. Could you please give little more points about this 
implementation .

Or if that is not possible with existing content and properties in ML4.2 then 
what is the alternative method for the same . Kindly appreciate your timely 
support .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Justin Makeig
Sent: Thursday, January 07, 2016 11:20 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Facets on properties in ML4.2

Are you really running MarkLogic 4.2? This is ancient. You should plan to 
upgrade as soon as feasible. It will be very difficult for the community or 
MarkLogic Support to assist you with this version. The most recent version is 
8.0-4.

It is possible to facet on properties. cts:values has an option that allows you 
include values from properties fragments. (Or cts:element-values in 4.2.) 
However, in general, I'd advise against properties fragments. Because they are 
separate from document fragments, properties require extra work to join at 
query time. If you don't want to change/enrich your actual document content you 
can use an envelope to "wrap" your documents:


  …
  …


This has the advantage of segregating the metadata (properties) and data, but 
also colocates them in the same fragment, reducing the work that queries will 
have to do.

Justin


On Jan 7, 2016, at 1:35 AM, 
rajamani.marimu...@cognizant.com wrote:

Hi Team,

  We are trying to implement facets from various property elements in ML4.2 
version . Is that possible. Like

  Search term :  “sample” present in content body
  Facets : on some properties like : author, geography   etc. from document 
properties . Kindly appreciate if have some sample custom constraint or similar 
options

By
Raja >>>
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Facets on properties in ML4.2

2016-01-07 Thread Rajamani.Marimuthu
Hi Team,

  We are trying to implement facets from various property elements in ML4.2 
version . Is that possible. Like

  Search term :  “sample” present in content body
  Facets : on some properties like : author, geography   etc. from document 
properties . Kindly appreciate if have some sample custom constraint or similar 
options

By
Raja >>>
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Facets on multiple properties

2015-12-18 Thread Rajamani.Marimuthu
Hi Team,

Is that possible to get facet results from only document properties in ML 4.2 
version. Is it possible kindly give some tips .


Thanks and regards
Raja >>>
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] M-to-M replication

2015-09-13 Thread Rajamani.Marimuthu
Hi David ,

Thanks for the quick response … It’s the four nodes cluster located In 
different data center ….Right now we have separate DR node as part of this 
cluster …

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of David Ennis
Sent: Monday, September 14, 2015 12:11 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] M-to-M replication

Are the servers in the same datacenter?

What about a cluster with local disk failover?



Kind Regards,
David Ennis


David Ennis
Content Engineer

[HintTech] 
Mastering the value of content
creative | technology | content

Delftechpark 37i
2628 XJ Delft
The Netherlands
T: +31 88 268 25 00
M: +31 63 091 72 80

[http://www.hinttech.com] 
[http://www.hinttech.com/signature/Twitter_HintTech.png] 
  
[http://www.hinttech.com/signature/Facebook_HintTech.png] 
  
[http://www.hinttech.com/signature/Linkedin_HintTech.png] 


On 14 September 2015 at 08:36, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Team,

We are using ML4.2 and now started the migration to ML-8 , part of this 
migration we finding possible solutions about master to master replication 
which is currently not supported by ML. My questions is there any workaround  
to implement this M-to- M replication or is there any roadmap planned for the 
same in fourth coming versions . Pls suggest the possible ways  to achieve this 
replication .

Thanks and regards
Raja >>>
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] M-to-M replication

2015-09-13 Thread Rajamani.Marimuthu
Hi Team,

We are using ML4.2 and now started the migration to ML-8 , part of this 
migration we finding possible solutions about master to master replication 
which is currently not supported by ML. My questions is there any workaround  
to implement this M-to- M replication or is there any roadmap planned for the 
same in fourth coming versions . Pls suggest the possible ways  to achieve this 
replication .

Thanks and regards
Raja >>>
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Element Range Index duplication

2015-09-04 Thread Rajamani.Marimuthu
Hi Manju ,

 I hope you  aware about the marklogic support account . If yes then  you or 
your team members must have it, From there , you can raise a ticket for the 
mentioned index issues.


Thanks and regards
Raja >>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Friday, September 04, 2015 4:04 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

Hi Raja

Thanks  for the  input  do we know where to raise the ticket?

Thanks
Manju

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of 
rajamani.marimu...@cognizant.com
Sent: Friday, September 04, 2015 6:29 AM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

Hi Manju,

 This should not be allowed , I feel it was fixed in later version . I just 
tested with ML-8 -* its not taking same identical index for an element two 
times , throwing error stated - " Invalid input: two or more range element 
indexes are identical. ". So we can raise a ticket to fix it in version 7-* if 
you feel still you facing the index issue.


Thanks and regards
Raja >>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Friday, September 04, 2015 3:54 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

The indexes are the  same, sorry for the  typo

With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

Thanks
Manju

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Friday, September 04, 2015 6:22 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

Hi Everyone,

I deleted and  recreated the  indexes

It  still allows me  to  create  100%  duplicate indexes, how a database can 
operate in this fashion, kind of puzzled.

> With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

 It allows me to create another index of the  same  name

> With Scalar type   : UnSignedLong
> Namespace URI   : 
> HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

Is this an  expected  behavior of Marklogic?

Please advice.

Thanks
Manju

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Thursday, September 03, 2015 11:43 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

Hi David

Yes, That is interesting, It  allowed me to create , same  100% identical 
Element range indexes , however  when I tried to  create the  same index third 
time It throws the message:


"Invalid input: two or more range element indexes are identical"

Waiting on the Marklogic Gurus ...to know why it allows the second identical 
element range index

Thanks
Manju
-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of David Sewell
Sent: Thursday, September 03, 2015 11:34 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

It is certainly possible to create more than one element range index (or 
attribute range index) on the same element. Ordinarily, you would do this to 
index an element as two different scalar types (such as "string" and "date"); 
or to index a string value according to two different collations (useful if you 
need to do more than one kind of sorting, for example).

But creating two 100% identical element range indexes... sounds like MarkLogic 
should complain about that. Maybe someone at MarkLogic can explain whether the 
second index is actually created, or just ignored.

David

On Thu, 3 Sep 2015, Rajendran, Manju wrote:

> Hi All
>
> I find something strange in the  version 7.0.2 of Marklogic Suppose I
> have the Range index already created
>
> With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE
>
> It allows me to create another index of the  same  name

Re: [MarkLogic Dev General] Element Range Index duplication

2015-09-04 Thread Rajamani.Marimuthu
Hi Manju,

 This should not be allowed , I feel it was fixed in later version . I just 
tested with ML-8 -* its not taking same identical index for an element two 
times , throwing error stated - " Invalid input: two or more range element 
indexes are identical. ". So we can raise a ticket to fix it in version 7-* if 
you feel still you facing the index issue.


Thanks and regards
Raja >>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Friday, September 04, 2015 3:54 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

The indexes are the  same, sorry for the  typo

With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

Thanks
Manju

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Friday, September 04, 2015 6:22 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

Hi Everyone,

I deleted and  recreated the  indexes

It  still allows me  to  create  100%  duplicate indexes, how a database can 
operate in this fashion, kind of puzzled.

> With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

 It allows me to create another index of the  same  name

> With Scalar type   : UnSignedLong
> Namespace URI   : 
> HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE

Is this an  expected  behavior of Marklogic?

Please advice.

Thanks
Manju

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Rajendran, Manju
Sent: Thursday, September 03, 2015 11:43 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

Hi David

Yes, That is interesting, It  allowed me to create , same  100% identical 
Element range indexes , however  when I tried to  create the  same index third 
time It throws the message:


"Invalid input: two or more range element indexes are identical"

Waiting on the Marklogic Gurus ...to know why it allows the second identical 
element range index

Thanks
Manju
-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of David Sewell
Sent: Thursday, September 03, 2015 11:34 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Element Range Index duplication

It is certainly possible to create more than one element range index (or 
attribute range index) on the same element. Ordinarily, you would do this to 
index an element as two different scalar types (such as "string" and "date"); 
or to index a string value according to two different collations (useful if you 
need to do more than one kind of sorting, for example).

But creating two 100% identical element range indexes... sounds like MarkLogic 
should complain about that. Maybe someone at MarkLogic can explain whether the 
second index is actually created, or just ignored.

David

On Thu, 3 Sep 2015, Rajendran, Manju wrote:

> Hi All
>
> I find something strange in the  version 7.0.2 of Marklogic Suppose I
> have the Range index already created
>
> With Scalar type   : UnSignedLong
> Namespace URI   : HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE
>
> It allows me to create another index of the  same  name
>
> With Scalar type   : UnSignedLong
> Namespace URI   : 
> HTTP://WWW.some.COM/FILE/COMMON
> LOCALNAME: internaltype
> Invalid Values  : ignore
> Range values   :  FALSE
>
> Is this a bug? Please could someone shed some light?
>
> Thanks
> Manju
>
>
>
>
>
>
> This e-mail may contain confidential or privileged information. If you
> think you have received this e-mail in error, please advise the sender
> by reply e-mail and then delete this e-mail immediately.
> Thank you. Aetna

--
David Sewell, Editorial and Technical Manager ROTUNDA, The University of 
Virginia Press PO Box 400318, Charlottesville, VA 22904-4314 USA
Email: dsew...@virginia.edu   Tel: +1 434 924 9973
Web: http://rotunda.upress.virginia.edu/
___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Converting SQL Server db to Marklogic ecosystem

2015-09-03 Thread Rajamani.Marimuthu
Hi Kris,

Consider a small sample and included two sample XML files , try to run the 
query u will get some idea about the document relationship .

for $sales in doc()/Sales, $region in doc()/Region

where $sales/@regID = $region/@regID

return ($sales/product, $region/product)

region.xml

xdmp:document-insert("/region/doc1.xml",Regoin Test Product1)

sales.xml

xdmp:document-insert("/sales/doc1.xml",Test Product1)

Hope  it will help . If you need some specific case , please explain the 
scenario clearly .

thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Cocoram007
Sent: Thursday, September 03, 2015 5:57 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Converting SQL Server db to Marklogic ecosystem

Hi,

I am just trying to understand the scenario of converting an existing SQL 
Server relational Db to Marklogic ecosystem.

In SQL, we have tables and relationships between tables

In Marklogic, we handle rows as documents, and we have one document for each 
row of the database table, Is it possible to establish a relationship between a 
group of documents (say a directory) to another directory(another group of 
documents)?

Say, in detail,

We have a Region table and daily Sales transaction table linked by 
Sales.country = Region.Country

In Marklogic, we have Region Directory (Similar to SQL Region Table) and Sales 
Directory(Similar to Sales Transaction Table). How do we link these two 
directories on country?

Can someone please shed some light on this?

Thanks
Kris
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Converting SQL Server db to Marklogic ecosystem

2015-09-03 Thread Rajamani.Marimuthu
Hi Kris,

You can include countryID  or similar attribute in both XML documents  to 
create the relationship between both. Is that really hard, I don't think  
-because we can create such things easily in different ways .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Cocoram007
Sent: Thursday, September 03, 2015 5:57 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Converting SQL Server db to Marklogic ecosystem

Hi,

I am just trying to understand the scenario of converting an existing SQL 
Server relational Db to Marklogic ecosystem.

In SQL, we have tables and relationships between tables

In Marklogic, we handle rows as documents, and we have one document for each 
row of the database table, Is it possible to establish a relationship between a 
group of documents (say a directory) to another directory(another group of 
documents)?

Say, in detail,

We have a Region table and daily Sales transaction table linked by 
Sales.country = Region.Country

In Marklogic, we have Region Directory (Similar to SQL Region Table) and Sales 
Directory(Similar to Sales Transaction Table). How do we link these two 
directories on country?

Can someone please shed some light on this?

Thanks
Kris
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] How to trobleshoot Linux Installation

2015-08-25 Thread Rajamani.Marimuthu
Hi Vipan,

What you are getting in the admin interface while accessing by browser .Pls 
send us clear info to solve your problem .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Joshi, Vipan
Sent: Tuesday, August 25, 2015 6:01 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] How to trobleshoot Linux Installation

Hi All,
I installed MarkLogic on linux RHEL 6.x and I am not able to connect to admin 
console using browser from desktop.
Wanted to know how can I troubleshoot to resolve this problem - there is not 
much in ErrorLog.txt
Below are some of the lines from error log file.

2015-08-25 07:16:32.904 Notice: Stopping by SIGTERM from pid 17796
2015-08-25 07:16:59.124 Notice: Starting MarkLogic Server 8.0-3 x86_64 in 
/opt/MarkLogic with data in /var/opt/MarkLogic
2015-08-25 07:16:59.133 Info: Host apsrd5148.uhc.com running Linux 
2.6.32-504.8.1.el6.x86_64 (Red Hat Enterprise Linux Server release 6.6 
(Santiago))
2015-08-25 07:16:59.152 Info: SSL FIPS mode has been enabled
2015-08-25 07:16:59.923 Info: Native plugin cache manifest initialized
2015-08-25 07:16:59.926 Info: Forest Last-Login state changed from unmounted to 
mounted
2015-08-25 07:16:59.927 Info: Linux file system mount option 'barrier' is 
default; recommend faster 'nobarrier' if storage has non-volatile write cache
2015-08-25 07:16:59.927 Info: Mounted forest Last-Login locally on 
/var/opt/MarkLogic/Forests/Last-Login read write (dm-4 ext4 rw)
2015-08-25 07:16:59.929 Info: Forest Last-Login state changed from mounted to 
recovering
2015-08-25 07:16:59.932 Info: Forest Schemas state changed from unmounted to 
mounted
2015-08-25 07:16:59.932 Info: Forest Last-Login state changed from recovering 
to open
2015-08-25 07:16:59.932 Info: Mounted forest Schemas locally on 
/var/opt/MarkLogic/Forests/Schemas read write (dm-4 ext4 rw)
2015-08-25 07:16:59.934 Info: Forest Schemas state changed from mounted to 
recovering
2015-08-25 07:16:59.937 Info: Forest Extensions state changed from unmounted to 
mounted
2015-08-25 07:16:59.938 Info: Mounted forest Extensions locally on 
/var/opt/MarkLogic/Forests/Extensions read write (dm-4 ext4 rw)
2015-08-25 07:16:59.939 Info: Forest Schemas state changed from recovering to 
open
2015-08-25 07:16:59.939 Warning: Metering database is not configured - 
Temporarily disabling usage metering
2015-08-25 07:16:59.939 Warning: Linux Transparent Huge Pages are enabled, 
diminishing performance; recommend disabling
2015-08-25 07:16:59.940 Info: Forest Extensions state changed from mounted to 
recovering
2015-08-25 07:16:59.940 Info: Forest App-Services state changed from unmounted 
to mounted
2015-08-25 07:16:59.941 Info: Mounted forest App-Services locally on 
/var/opt/MarkLogic/Forests/App-Services read write (dm-4 ext4 rw)
2015-08-25 07:16:59.942 Info: Forest App-Services state changed from mounted to 
recovering
2015-08-25 07:16:59.943 Info: Forest Extensions state changed from recovering 
to open
2015-08-25 07:16:59.944 Info: Forest Triggers state changed from unmounted to 
mounted
2015-08-25 07:16:59.945 Info: Forest App-Services state changed from recovering 
to open
2015-08-25 07:16:59.945 Info: Mounted forest Triggers locally on 
/var/opt/MarkLogic/Forests/Triggers read write (dm-4 ext4 rw)
2015-08-25 07:16:59.946 Info: Forest Triggers state changed from mounted to 
recovering
2015-08-25 07:16:59.947 Info: Forest Fab state changed from unmounted to mounted
2015-08-25 07:16:59.947 Info: Mounted forest Fab locally on 
/var/opt/MarkLogic/Forests/Fab read write (dm-4 ext4 rw)
2015-08-25 07:16:59.948 Info: Forest Triggers state changed from recovering to 
open
2015-08-25 07:16:59.949 Info: Forest Fab state changed from mounted to 
recovering
2015-08-25 07:16:59.949 Info: Forest Meters state changed from unmounted to 
mounted
2015-08-25 07:16:59.949 Info: Mounted forest Meters locally on 
/var/opt/MarkLogic/Forests/Meters read write (dm-4 ext4 rw)
2015-08-25 07:16:59.951 Info: Forest Meters state changed from mounted to 
recovering
2015-08-25 07:16:59.951 Info: Forest Modules state changed from unmounted to 
mounted
2015-08-25 07:16:59.951 Info: Forest Fab state changed from recovering to open
2015-08-25 07:16:59.952 Info: Mounted forest Modules locally on 
/var/opt/MarkLogic/Forests/Modules read write (dm-4 ext4 rw)
2015-08-25 07:16:59.953 Info: Forest Meters state changed from recovering to 
open
2015-08-25 07:16:59.953 Info: Forest Modules state changed from mounted to 
recovering
2015-08-25 07:16:59.954 Info: Forest Documents state changed from unmounted to 
mounted
2015-08-25 07:16:59.954 Info: Mounted forest Documents locally on 
/var/opt/MarkLogic/Forests/Documents read write (dm-4 ext4 rw)
2015-08-25 07:16:59.955 Info: Forest Modules state changed from recovering to 
open
2015-08-25 07:16:59.956 Info: Forest Documents state changed from mounted to 
recovering
2015-08-25 07:16:59.957 Info: Forest S

Re: [MarkLogic Dev General] Java client API for specifying weights in the search request

2015-08-25 Thread Rajamani.Marimuthu
Hi Deepak,

Following Java API link also helpful I guess .
http://docs.marklogic.com/guide/java/query-options#id_66439


Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Deepak Saini
Sent: Tuesday, August 25, 2015 1:51 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Java client API for specifying weights in the 
search request

Hi,

Can anyone pls point to me the reference of the Java client API documentation 
which shows how weights can be used in search requests to influence the 
relevance scores.

Thanks
Deepak
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Java client API for specifying weights in the search request

2015-08-25 Thread Rajamani.Marimuthu
Hi Deepak,

Did you check the below link about the "Using weights to influence scores"  - 
http://docs.marklogic.com/guide/search-dev/relevance#id_22791


Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Deepak Saini
Sent: Tuesday, August 25, 2015 1:51 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Java client API for specifying weights in the 
search request

Hi,

Can anyone pls point to me the reference of the Java client API documentation 
which shows how weights can be used in search requests to influence the 
relevance scores.

Thanks
Deepak
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] element-value-query Vs where condition

2015-08-17 Thread Rajamani.Marimuthu
Hi Anoop,

Marklogic specific Xquery functions mainly introduced for faster performance 
and get fast results . Even in some constraint plain Xquery FlOWR conditions 
also useful.. All are depends on the requirements but, I can suggest wherever 
possible use marklogic specific functions get better results .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Anoop Khetan
Sent: Monday, August 17, 2015 5:38 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] cts:element-value-query Vs where condition

Hi,

In my system few Xqueries are using cts:element-value-query and few Xquries are 
using where condition to get particular document.

Can someone tell me which will give me faster results.

Regards,
Anoop


 CAUTION - Disclaimer *

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are 
not

to copy, disclose, or distribute this e-mail or its contents to any other 
person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken

every reasonable precaution to minimize this risk, but is not liable for any 
damage

you may sustain as a result of any virus in this e-mail. You should carry out 
your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this 
e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Error while trying to load a XML to a ML Server from network

2015-08-12 Thread Rajamani.Marimuthu
Hi,

Could you explain ,how u tried webdav connection to ingest the data. What error 
message you got ….

Thanks and regards
Raja>>.

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of SNEHASISH DUTTA
Sent: Wednesday, August 12, 2015 7:27 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Error while trying to load a XML to a ML 
Server from network

Hi
I have already checked webDAV is not working

Regards,
Sneh

On Wed, Aug 12, 2015 at 2:13 PM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi,
Then better you can try with webdav option .

Thanks and regards
Raja>>>

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of SNEHASISH DUTTA
Sent: Wednesday, August 12, 2015 2:02 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Error while trying to load a XML to a ML 
Server from network

Hi,

This solution would work for small files only. When dealing with large xml 
documents copy pasting won't be a feasible option.
Even the information studio is unable to find the files from local system.

Regards,
Sneh

On Wed, Aug 12, 2015 at 1:35 PM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Sanjay,

Simply you can copy and paste the XML content in second param of  
xdmp:document-insert function .

xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

xdmp:document-insert("/assignment/breakfast/breakfast.xml “, your 
contents)


Thanks and regards
Raja >>>


From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Sanjaya Keshari Dash
Sent: Tuesday, August 11, 2015 7:21 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Error while trying to load a XML to a ML 
Server from network

Hi All,

we have ML Server Enterprise Edition 8.0-3 installed one of the systems in our 
network. However, It worked fine while trying to load it from the same system 
where the server is running.

While trying to load a file from another system(Remote) on the same network, 
the command is not able to trace the path, which is local to the remote host.

XQuery:
xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",

  /assignment/breakfast/breakfast.xml
  none
  {xdmp:default-permissions()}
)

Error Message:

[1.0-ml] SVC-FILOPN: 
xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfa...",
 /assignment/breakfast/breakfast.xmlnone)
 -- File open error: open 
'd:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml': No 
such file or directory
Stack Trace
At line 4 column 0:
In xdmp:eval("xquery version "1.0-ml";
declare namespace html = 
...", (), 1607589010873141061710812663131527...)
2. declare namespace html = "http://www.w3.org/1999/xhtml";;
3.
4. 
xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",
5. 
6. /assignment/breakfast/breakfast.xml
Please advise on the resolution if possible.

thanks
_ sanjaya

 CAUTION - Disclaimer *

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are 
not

to copy, disclose, or distribute this e-mail or its contents to any other 
person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken

every reasonable precaution to minimize this risk, but is not liable for any 
damage

you may sustain as a result of any virus in this e-mail. You should carry out 
your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this 
e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addre

Re: [MarkLogic Dev General] Error while trying to load a XML to a ML Server from network

2015-08-12 Thread Rajamani.Marimuthu
Hi,
Then better you can try with webdav option .

Thanks and regards
Raja>>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of SNEHASISH DUTTA
Sent: Wednesday, August 12, 2015 2:02 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Error while trying to load a XML to a ML 
Server from network

Hi,

This solution would work for small files only. When dealing with large xml 
documents copy pasting won't be a feasible option.
Even the information studio is unable to find the files from local system.

Regards,
Sneh

On Wed, Aug 12, 2015 at 1:35 PM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Sanjay,

Simply you can copy and paste the XML content in second param of  
xdmp:document-insert function .

xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

xdmp:document-insert("/assignment/breakfast/breakfast.xml “, your 
contents)


Thanks and regards
Raja >>>


From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Sanjaya Keshari Dash
Sent: Tuesday, August 11, 2015 7:21 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Error while trying to load a XML to a ML 
Server from network

Hi All,

we have ML Server Enterprise Edition 8.0-3 installed one of the systems in our 
network. However, It worked fine while trying to load it from the same system 
where the server is running.

While trying to load a file from another system(Remote) on the same network, 
the command is not able to trace the path, which is local to the remote host.

XQuery:
xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",

  /assignment/breakfast/breakfast.xml
  none
  {xdmp:default-permissions()}
)

Error Message:

[1.0-ml] SVC-FILOPN: 
xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfa...",
 /assignment/breakfast/breakfast.xmlnone)
 -- File open error: open 
'd:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml': No 
such file or directory
Stack Trace
At line 4 column 0:
In xdmp:eval("xquery version "1.0-ml";
declare namespace html = 
...", (), 1607589010873141061710812663131527...)
2. declare namespace html = "http://www.w3.org/1999/xhtml";;
3.
4. 
xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",
5. 
6. /assignment/breakfast/breakfast.xml
Please advise on the resolution if possible.

thanks
_ sanjaya

 CAUTION - Disclaimer *

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are 
not

to copy, disclose, or distribute this e-mail or its contents to any other 
person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken

every reasonable precaution to minimize this risk, but is not liable for any 
damage

you may sustain as a result of any virus in this e-mail. You should carry out 
your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this 
e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents

Re: [MarkLogic Dev General] Error while trying to load a XML to a ML Server from network

2015-08-12 Thread Rajamani.Marimuthu
Hi Sanjay,

Simply you can copy and paste the XML content in second param of  
xdmp:document-insert function .

xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

xdmp:document-insert("/assignment/breakfast/breakfast.xml “, your 
contents)


Thanks and regards
Raja >>>


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Sanjaya Keshari 
Dash
Sent: Tuesday, August 11, 2015 7:21 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Error while trying to load a XML to a ML 
Server from network

Hi All,

we have ML Server Enterprise Edition 8.0-3 installed one of the systems in our 
network. However, It worked fine while trying to load it from the same system 
where the server is running.

While trying to load a file from another system(Remote) on the same network, 
the command is not able to trace the path, which is local to the remote host.

XQuery:
xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",

  /assignment/breakfast/breakfast.xml
  none
  {xdmp:default-permissions()}
)

Error Message:

[1.0-ml] SVC-FILOPN: 
xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfa...",
 /assignment/breakfast/breakfast.xmlnone)
 -- File open error: open 
'd:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml': No 
such file or directory
Stack Trace
At line 4 column 0:
In xdmp:eval("xquery version "1.0-ml";
declare namespace html = 
...", (), 1607589010873141061710812663131527...)
2. declare namespace html = "http://www.w3.org/1999/xhtml";;
3.
4. 
xdmp:document-load("d:\MarkLogic\day2ExampleCodes\day2ExampleCodes\breakfast\breakfast.xml",
5. 
6. /assignment/breakfast/breakfast.xml
Please advise on the resolution if possible.

thanks
_ sanjaya

 CAUTION - Disclaimer *

This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely

for the use of the addressee(s). If you are not the intended recipient, please

notify the sender by e-mail and delete the original message. Further, you are 
not

to copy, disclose, or distribute this e-mail or its contents to any other 
person and

any such actions are unlawful. This e-mail may contain viruses. Infosys has 
taken

every reasonable precaution to minimize this risk, but is not liable for any 
damage

you may sustain as a result of any virus in this e-mail. You should carry out 
your

own virus checks before opening the e-mail or attachment. Infosys reserves the

right to monitor and review the content of all messages sent to or from this 
e-mail

address. Messages sent to or from this e-mail address may be stored on the

Infosys e-mail system.

***INFOSYS End of Disclaimer INFOSYS***


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Supported character encodings

2015-08-06 Thread Rajamani.Marimuthu
Hi Jurgan,

As you know , Marklogic  stores all the content  in UTF-8 encoding by default , 
if you specify any other encoding format in ingestion  then ML will try to 
transcode that into UTF-8 format . And UTF-8, ISO-8859-1 are two main encoding 
options as well as many other popular encoding also ML will support , See the 
below link to get the complete set of character set encoding by language.

http://docs.marklogic.com/guide/search-dev/encodings_collations#id_40354

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of 
juergen.ritschka-kohl
Sent: Thursday, August 06, 2015 3:08 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Supported character encodings


Hi,

one of our customer wants to have a list of supported encodings for the 
xdmp:document-get - Function.
The encoding-option is set to “auto” and now he wants to know which encodings 
are supported. We have documents in English, German and French.

Is there somewhere such a list - we were not able to find a complete list in 
the web.

Many thanks
Jürgen

--
Ing. Jürgen Ritschka-Kohl
Principal Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
1200 Wien

Mobil: +43 664 60651599
Fax: +43 2772 512 69-9
Email: 
juergen.ritschka-k...@ebcont.com
Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS


HG St. Pölten - FN 293731 h
UID: ATU63444589


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Query Result Downloading (QConsole)

2015-07-23 Thread Rajamani.Marimuthu
Hi Andreas,

You can also use the Zip option , this will download your xml  into your local 
file system in zip file.


let $zip := xdmp:zip-create(

   

 mimetype

result.xml

  ,

(document { "application/epub+zip" },

 {$resultData}

 ))

return

( xdmp:set-response-content-type("application/zip"),



$zip)


Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Dave Cassel
Sent: Thursday, July 23, 2015 6:29 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Query Result Downloading (QConsole)

To be precise, xdmp:save() will write to the file system of the server where 
it's running; that might or might not be your local, depending on where 
MarkLogic is running. If it's remote, it will write to that server, and you can 
download the files from there (assuming you have access).

--
Dave Cassel, @dmcassel
Technical Community Manager
MarkLogic Corporation
http://developer.marklogic.com/



From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Andreas Hubmer 
mailto:andreas.hub...@ebcont.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, July 23, 2015 at 8:48 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Query Result Downloading (QConsole)

True, that is an option. Thanks!

2015-07-23 14:43 GMT+02:00 DK Singh 
mailto:dharam.m...@gmail.com>>:

You can save the result in your local system using xdmp:save function
On Jul 23, 2015 6:02 PM, "Andreas Hubmer" 
mailto:andreas.hub...@ebcont.com>> wrote:
Hello,
Is there a possibility to download the result of a query instead of displaying 
it in the Query Console? Sometimes the result is just too big.
Best regards,
Andreas

--
Andreas Hubmer
IT Consultant

Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS


___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general



--
Andreas Hubmer
IT Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna

Mobile: +43 664 60651861
Fax: +43 2772 512 69-9
Email: andreas.hub...@ebcont.com
Web: http://www.ebcont.com

OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Aggregate functions in search:search

2015-07-23 Thread Rajamani.Marimuthu
Hi Basavaraj,

Did u try something like below one

cts:search(/,
cts:and-query((cts:word-query("abc"), cts:collection-query("test1"),
  xs:string(cts:max(cts:element-reference(xs:QName("size")))



If this is the requirement then you can pass third param in and-query .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Basavaraj Kalloli
Sent: Wednesday, July 22, 2015 11:42 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Aggregate functions in search:search

Hi Rajamani,

I dint use the above one in our case we just created constraints using range 
indexes and sorted them by ascending and descending and apply a limit of 1.

We dint go more into search:values because we wanted it work with cts:queries 
but as Geert pointed out we need to pass that as an additional query in options.

On Tue, Jul 21, 2015 at 4:26 PM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Basavaraj,

Did you try something like following , I have formed structured query as third 
param  for the given scenario.


import module namespace search = "http://marklogic.com/appservices/search"; at 
"/MarkLogic/appservices/search/search.xqy";
let $searchQ := http://marklogic.com/appservices/search";>
  

  abc


  test1

  


let  $options :=
http://marklogic.com/appservices/search";>

  

  


{$searchQ}




return search:values("example", $options,$searchQ)

Thanks and regards
Raja >>>

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Basavaraj Kalloli
Sent: Monday, July 20, 2015 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Aggregate functions in search:search

Hi Geert,

Thanks for the response so we are back to using search:values.

For eg:

cts:and-query((cts:word-query("some word"), cts:collection-query("some 
collection")))

search:values takes third parameter as a structured query i.e search:query

https://docs.marklogic.com/search:parse

But we have a cts:and-query so we are not sure how to convert this to a 
structured query. We have tried search:parse but it doesnt work.

On Mon, Jul 20, 2015 at 2:40 PM, Geert Josten 
mailto:geert.jos...@marklogic.com>> wrote:
Hi Basavaraj,

I’m afraid the documentation is a bit misleading. Your observation is correct, 
search:search ignores settings like values and tuples, they are only 
interpreted by search:values. Similarly suggestion sources are only interpreted 
by search:suggest. This makes it easier to have all search related options in 
one file, and share them among multiple functions. Particularly useful in REST 
api..

Cheers,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Basavaraj Kalloli 
mailto:basavarajkall...@gmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, July 20, 2015 at 10:57 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Aggregate functions in search:search

We need to calculate max values of two nodes for a given search query. From 
MarkLogic documentation we could see that we could achieve this using values in 
the options node of search:search. Example below:

We have 2 documents:




abc

12

abc

4


We tried to find the max/min using search:search as below:


xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";;



import module namespace search = "http://marklogic.com/appservices/search"; at 
"/MarkLogic/appservices/search/search.xqy";



declare variable $options :=

http://marklogic.com/appservices/search";>



  



  





;



search:search("abc", $options)

this does not return values-response node which this documentation claims: 
http://docs.marklogic.com/search:search#opt-values

If we use search:values as below then it returns values-response:


xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";;



import module namespace search = "http://marklogic.com/appservices/search"; at 
"/MarkLogic/appservices/search/search.xqy";



declare variable $options :=

http://marklogic.com/appservices/search";>



  



  





;

search:values("example", $options)

Output:


http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:search="http://marklogic.com/appservices/search";>

  4

  12

  12

  http://marklogic.com/appservices/search";>

PT0.001927S

PT0.00242S

PT0.005973S

  




Re: [MarkLogic Dev General] Need to remove unused xml namespace prefix

2015-07-22 Thread Rajamani.Marimuthu
Hi Raghu,

Give use some sample XML file and your existing code sample  to understand the 
scenario .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Raghu
Sent: Wednesday, July 22, 2015 4:27 PM
To: MarkLogic Developer Discussion
Cc: Naga .
Subject: Re: [MarkLogic Dev General] Need to remove unused xml namespace prefix

I understand the concept of namespace and we are allowed to have different 
namespaces inside a single xml apart from the root namespace, IMHO any element 
unless specified otherwise, inherits it's parent's namespace. My question is 
that is there a way where I apply the xpath on a child element, and 
ignore/remove the unused namespace prefix from the resulting xml? One of my 
dependent service is consuming the xml and although, what I'm returning to that 
service is semantically the same as what was saved, these unused prefixes are 
creating an issue. Any help is appreciated.

On Tue, Jul 21, 2015 at 1:30 PM, Asit Nautiyal 
mailto:asitnauti...@outlook.com>> wrote:

Hi Raghu,

Here you want to keep the text.xml as part of "http://somewhere.something.com"; 
namespace and want to make its child element (child) part to other namespace 
""http://anywhere.anything.com" , correct me, if 
I am wrong!

If this is the case then, you are making this xml file as ambiguous. In xml 
file , all child elements should belongs to same namespace as its root element, 
that's why we have concept of namespace.

Regards,
Asit Nautiyal

Date: Tue, 21 Jul 2015 11:07:53 -0400
From: raghupathy.visweswa...@gmail.com
To: general@developer.marklogic.com
CC: nagendran...@gmail.com
Subject: [MarkLogic Dev General] Need to remove unused xml namespace prefix

HI All,

The following snippet gives me the unused namespace prefix (in this case ns), I 
need to ignore such unused namespace prefixes in the output

Query

declare namespace ns="http://somewhere.something.com";;
xdmp:document-insert
(
"/text.xml",

http://anywhere.anything.com";>

);
doc("/text.xml")//*:child

Result

http://somewhere.something.com"; 
xmlns="http://anywhere.anything.com"/>

Thanks in advance!
Raghu

___ General mailing list 
General@developer.marklogic.com Manage 
your subscription at: http://developer.marklogic.com/mailman/listinfo/general

___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Aggregate functions in search:search

2015-07-21 Thread Rajamani.Marimuthu
Hi Basavaraj,

Did you try something like following , I have formed structured query as third 
param  for the given scenario.


import module namespace search = "http://marklogic.com/appservices/search"; at 
"/MarkLogic/appservices/search/search.xqy";
let $searchQ := http://marklogic.com/appservices/search";>
  

  abc


  test1

  


let  $options :=
http://marklogic.com/appservices/search";>

  

  


{$searchQ}




return search:values("example", $options,$searchQ)

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Basavaraj Kalloli
Sent: Monday, July 20, 2015 5:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Aggregate functions in search:search

Hi Geert,

Thanks for the response so we are back to using search:values.

For eg:

cts:and-query((cts:word-query("some word"), cts:collection-query("some 
collection")))

search:values takes third parameter as a structured query i.e search:query

https://docs.marklogic.com/search:parse

But we have a cts:and-query so we are not sure how to convert this to a 
structured query. We have tried search:parse but it doesnt work.

On Mon, Jul 20, 2015 at 2:40 PM, Geert Josten 
mailto:geert.jos...@marklogic.com>> wrote:
Hi Basavaraj,

I’m afraid the documentation is a bit misleading. Your observation is correct, 
search:search ignores settings like values and tuples, they are only 
interpreted by search:values. Similarly suggestion sources are only interpreted 
by search:suggest. This makes it easier to have all search related options in 
one file, and share them among multiple functions. Particularly useful in REST 
api..

Cheers,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Basavaraj Kalloli 
mailto:basavarajkall...@gmail.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, July 20, 2015 at 10:57 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Aggregate functions in search:search

We need to calculate max values of two nodes for a given search query. From 
MarkLogic documentation we could see that we could achieve this using values in 
the options node of search:search. Example below:

We have 2 documents:




abc

12

abc

4


We tried to find the max/min using search:search as below:


xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";;



import module namespace search = "http://marklogic.com/appservices/search"; at 
"/MarkLogic/appservices/search/search.xqy";



declare variable $options :=

http://marklogic.com/appservices/search";>



  



  





;



search:search("abc", $options)

this does not return values-response node which this documentation claims: 
http://docs.marklogic.com/search:search#opt-values

If we use search:values as below then it returns values-response:


xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";;



import module namespace search = "http://marklogic.com/appservices/search"; at 
"/MarkLogic/appservices/search/search.xqy";



declare variable $options :=

http://marklogic.com/appservices/search";>



  



  





;

search:values("example", $options)

Output:


http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:search="http://marklogic.com/appservices/search";>

  4

  12

  12

  http://marklogic.com/appservices/search";>

PT0.001927S

PT0.00242S

PT0.005973S

  



Theoretically this should work with search:search as well but somehow it 
completely ignores values node. Are we missing something obvious here or some 
other config is needed?

___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
___
General mailing

Re: [MarkLogic Dev General] Equivalent conversion from Xquery to cts:queries

2015-07-10 Thread Rajamani.Marimuthu
Hi ,

Please give me sample input and output xml code for better understanding . Or 
explain the scenario more clearly .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of ???
Sent: Friday, July 10, 2015 2:34 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] Equivalent conversion from Xquery to 
cts:queries

query
cts:search(/root/child1/child2,

 cts:and-query((

cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), "1"),

cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")

   )))/child3[@att = "1"]

can work, but it is not i want.



I want the query like this:

cts:search(/root/child1/child2/child3,

 cts:and-query((

 cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), 
"1"),

cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")

   )))
but it can not work  correctly. because cts:element* function can search the 
element and all of child element, but
if i want to  search its parent element,  is there any cts:queries function i 
can use?





>--

>

>Message: 1

>Date: Fri, 10 Jul 2015 16:09:37 +0800 (CST)

>From: ??? mailto:zisedeq...@163.com>>

>Subject: [MarkLogic Dev General] Equivalent conversion from Xquery to

>   cts:queries

>To: general@developer.marklogic.com

>Message-ID: 
><7d9218cc.20291.14e77033dbc.coremail.zisedeq...@163.com>

>Content-Type: text/plain; charset="gbk"

>

>In my database, the most of xml documents content likes this:

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>the Xquery is:

>for $i in collection()/root/child1/child2/child3

>where

>$i/@att = '1'

>and $i/..[@att] = '1'

>return $i/@id

>and its result is:

> 

>

>

>but when i use the cts:query to do the same thing , the result is different

>

>

>query :

>cts:search(collection()/root/child1/child2,

>  cts:and-query((

>cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), 
> "1"),

>cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")

>)))/child3

>and result is:

>

>element

>

>

>

>so how can i rewrite the XQuery by useing cts:queries when ../ appear in the 
>where condition?

>-- next part --

>An HTML attachment was scrubbed...

>URL: 
>http://developer.marklogic.com/pipermail/general/attachments/20150710/a15af41a/attachment-0001.html

>

>--

>

>Message: 2

>Date: Fri, 10 Jul 2015 08:32:38 +

>From: 
>mailto:rajamani.marimu...@cognizant.com>>

>Subject: Re: [MarkLogic Dev General] Equivalent conversion from Xquery

>   to  cts:queries

>To: mailto:general@developer.marklogic.com>>

>Message-ID:

>   
> <122019794b1a814483856cd4d052882a01c4e...@ctsinchnsxmbu.cts.com>

>Content-Type: text/plain; charset="us-ascii"

>

>Hi,

>

>Try this ,

>

>cts:search(/root/child1/child2,

>  cts:and-query((

>cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), 
> "1"),

>cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")

>)))/child3[@att = "1"]

>

>Thanks and regards

>Raja >>>

>

>From: 
>general-boun...@developer.marklogic.com
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of ???

>Sent: Friday, July 10, 2015 1:40 PM

>To: general@developer.marklogic.com

>Subject: [MarkLogic Dev General] Equivalent conversion from Xquery to 
>cts:queries

>

>In my database, the most of xml documents content likes this:

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>

>the Xquery is:

>for $i in collection()/root/child1/child2/child3

>where

>$i/@att = '1'

>and $i/..[@att] = '1'

>return $i/@id

>and its result is:

> 

>

>but when i use the cts:query to do the same thing , the result is different

>

>query :

>cts:search(collection()/root/child1/child2,

>  cts:and-query((

>cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), 
> "1"),

>cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")

>)))/child3

>and result is:

>

>element 

>

>

>so how can i rewrite the XQuery by useing cts:queries when ../ appear in the 
>where condition?

>

>This e-mail and any files transmitted wit

Re: [MarkLogic Dev General] Equivalent conversion from Xquery to cts:queries

2015-07-10 Thread Rajamani.Marimuthu
Hi,

Try this ,

cts:search(/root/child1/child2,
  cts:and-query((
cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), "1"),
cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")
)))/child3[@att = "1"]

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of ???
Sent: Friday, July 10, 2015 1:40 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Equivalent conversion from Xquery to 
cts:queries

In my database, the most of xml documents content likes this:















the Xquery is:
for $i in collection()/root/child1/child2/child3
where
$i/@att = '1'
and $i/..[@att] = '1'
return $i/@id
and its result is:
 

but when i use the cts:query to do the same thing , the result is different

query :
cts:search(collection()/root/child1/child2,
  cts:and-query((
cts:element-attribute-value-query(xs:QName("child2"), xs:QName("att"), "1"),
cts:element-attribute-value-query(xs:QName("child3"), xs:QName("att"), "1")
)))/child3
and result is:

element 


so how can i rewrite the XQuery by useing cts:queries when ../ appear in the 
where condition?

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Custom Error Handling for REST API call

2015-07-09 Thread Rajamani.Marimuthu
Hi Danny ,

Me too tested the same scenario , Yes, its look like bug only , the error 
message generated two times for single [GET Method] hit.

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sinang
Sent: Wednesday, July 08, 2015 8:10 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Custom Error Handling for REST API call

Come to think of it, yeah, it is a bug.

Will now file a bug report to ML support.

Turns out each call for a non-existent document generates not 20, but 316 lines 
in ErrorLog.txt.

Regards,
Danny

On Wed, Jul 8, 2015 at 10:27 AM, Erik Hennum 
mailto:erik.hen...@marklogic.com>> wrote:
Hi, Danny:

Thanks for clarifying.

The case could be made that it is a bug for a 404 to generate a stack trace in 
the error log (even at debug level).

Erik Hennum

From: 
general-boun...@developer.marklogic.com
 
[general-boun...@developer.marklogic.com]
 on behalf of Danny Sinang [d.sin...@gmail.com]
Sent: Wednesday, July 08, 2015 7:19 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Custom Error Handling for REST API call
Sorry, I should have mentioned that the long error message I'm seeing is in 
ErrorLog.txt and the File Logging Level is Debug.

Regards,
Danny

On Wed, Jul 8, 2015 at 8:53 AM, Erik Hennum 
mailto:erik.hen...@marklogic.com>> wrote:
Hi, Danny:

There isn't a way to customize standard error handling.

That said, I'm surprised that you're seeing a long response.  When I try, the 
total content of the error response is:

{"errorResponse":{"statusCode":404, "status":"Not Found", 
"messageCode":"RESTAPI-NODOCUMENT", "message":"RESTAPI-NODOCUMENT: 
(err:FOER) Resource or document does not exist:  category: content message: 
/not/there.json"}}

And the total content of the error log at info level is:

Info: App-Services: Status 500: RESTAPI-NODOCUMENT: (err:FOER) Resource or 
document does not exist:  category: content message: /not/there.json

Do you see the large output in the response or the log?  If the latter, is it 
possible you have logging set to debug or more fine grained?

Erik Hennum

From: 
general-boun...@developer.marklogic.com
 
[general-boun...@developer.marklogic.com]
 on behalf of Danny Sinang [d.sin...@gmail.com]
Sent: Wednesday, July 08, 2015 5:06 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Custom Error Handling for REST API call
Hi Raja,

Are you suggesting I create a resource extension instead and use fn:errorr() as 
described on that page ? If so, then yes, I believe that would be one solution.

However, I'm curious to see if there's a way to do custom error handling for 
the standard GET/v1/documents call. The doc at 
https://docs.marklogic.com/8.0/REST/GET/v1/documents doesn't seem to mention 
any way to do so.

Regards,
Danny


On Wed, Jul 8, 2015 at 7:52 AM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Danny ,

Did u check the below mentioned section in the REST API [extensions] document .

https://docs.marklogic.com/guide/rest-dev/extensions#id_33892


thanks and regards
Raja >>>

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Danny Sinang
Sent: Wednesday, July 08, 2015 4:26 PM
To: general
Subject: [MarkLogic Dev General] Custom Error Handling for REST API call

Is there a way to make the ML REST API on ML 8 do custom error handling ?

Right now, when we issue a request like this (for a non-existent document) :

GET /v1/documents/?uri=/1211/20/14/IC12112014.xml

We get a long (15 to 20-line) error message that starts off like this :


RESTAPI-NODOCUMENT: (err:FOER) Resource or document does not exist:  
category: content message: /1211/20/14/IC12112014.xml

 ...



I'm hoping I could just replace the error message with a custom one-liner.



Regards,

Danny




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.

__

Re: [MarkLogic Dev General] Custom Error Handling for REST API call

2015-07-08 Thread Rajamani.Marimuthu
Hi Danny,

Me too getting the similar kind of error message as XML format .

http://marklogic.com/xdmp/error";>
  404
  Not Found
  RESTAPI-NODOCUMENT
  RESTAPI-NODOCUMENT: (err:FOER) Resource or document does not 
exist:  category: content message: /cd1_catalog1.xml


As Erik, said , if its present in the log file , check the logging option is 
debugging level or not .


Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Erik Hennum
Sent: Wednesday, July 08, 2015 6:23 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Custom Error Handling for REST API call

Hi, Danny:

There isn't a way to customize standard error handling.

That said, I'm surprised that you're seeing a long response.  When I try, the 
total content of the error response is:

{"errorResponse":{"statusCode":404, "status":"Not Found", 
"messageCode":"RESTAPI-NODOCUMENT", "message":"RESTAPI-NODOCUMENT: 
(err:FOER) Resource or document does not exist:  category: content message: 
/not/there.json"}}

And the total content of the error log at info level is:

Info: App-Services: Status 500: RESTAPI-NODOCUMENT: (err:FOER) Resource or 
document does not exist:  category: content message: /not/there.json

Do you see the large output in the response or the log?  If the latter, is it 
possible you have logging set to debug or more fine grained?

Erik Hennum

From: 
general-boun...@developer.marklogic.com
 [general-boun...@developer.marklogic.com] on behalf of Danny Sinang 
[d.sin...@gmail.com]
Sent: Wednesday, July 08, 2015 5:06 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Custom Error Handling for REST API call
Hi Raja,

Are you suggesting I create a resource extension instead and use fn:errorr() as 
described on that page ? If so, then yes, I believe that would be one solution.

However, I'm curious to see if there's a way to do custom error handling for 
the standard GET/v1/documents call. The doc at 
https://docs.marklogic.com/8.0/REST/GET/v1/documents doesn't seem to mention 
any way to do so.

Regards,
Danny


On Wed, Jul 8, 2015 at 7:52 AM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Danny ,

Did u check the below mentioned section in the REST API [extensions] document .

https://docs.marklogic.com/guide/rest-dev/extensions#id_33892


thanks and regards
Raja >>>

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Danny Sinang
Sent: Wednesday, July 08, 2015 4:26 PM
To: general
Subject: [MarkLogic Dev General] Custom Error Handling for REST API call

Is there a way to make the ML REST API on ML 8 do custom error handling ?

Right now, when we issue a request like this (for a non-existent document) :

GET /v1/documents/?uri=/1211/20/14/IC12112014.xml

We get a long (15 to 20-line) error message that starts off like this :


RESTAPI-NODOCUMENT: (err:FOER) Resource or document does not exist:  
category: content message: /1211/20/14/IC12112014.xml

 ...



I'm hoping I could just replace the error message with a custom one-liner.



Regards,

Danny




This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 

Re: [MarkLogic Dev General] Custom Error Handling for REST API call

2015-07-08 Thread Rajamani.Marimuthu
Hi Danny ,

Did u check the below mentioned section in the REST API [extensions] document .

https://docs.marklogic.com/guide/rest-dev/extensions#id_33892


thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sinang
Sent: Wednesday, July 08, 2015 4:26 PM
To: general
Subject: [MarkLogic Dev General] Custom Error Handling for REST API call

Is there a way to make the ML REST API on ML 8 do custom error handling ?

Right now, when we issue a request like this (for a non-existent document) :

GET /v1/documents/?uri=/1211/20/14/IC12112014.xml

We get a long (15 to 20-line) error message that starts off like this :


RESTAPI-NODOCUMENT: (err:FOER) Resource or document does not exist:  
category: content message: /1211/20/14/IC12112014.xml

 ...



I'm hoping I could just replace the error message with a custom one-liner.



Regards,

Danny





This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] xdmp:node-insert-child() throw XDMP-EXPNTREECACHEFULL error

2015-07-07 Thread Rajamani.Marimuthu
Hi ,

As Asit told , always try to use ML specific functions to avoid expanded tree 
cache error and get better performance . Try the below one for your requirement 
.

for $update-node in cts:search(/,
cts:and-query((( cts:collection-query("test")),(
  cts:element-attribute-range-query(
xs:QName("visit"),
xs:QName("age"),
"=",
('60','61','62','63','64','65'))
return 
xdmp:node-insert-child($update-node/patient/link/visit,String)


thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of ???
Sent: Tuesday, July 07, 2015 9:23 AM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] xdmp:node-insert-child() throw 
XDMP-EXPNTREECACHEFULL error

my query is :
xdmp:node-insert-child(collection('test')/patient/link/visit[@age = 
('60岁','61岁','62岁','63岁','64岁','65岁')],
 some string ...);

how to change my query to void the XDMP-EXPNTREECACHEFULL error?
thanks.

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] rang index for string element

2015-07-03 Thread Rajamani.Marimuthu
Hi ,

If give more specific scenario then will give better solutions .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Chunyu Cong
Sent: Friday, July 03, 2015 6:39 PM
To: General@developer.marklogic.com
Subject: [MarkLogic Dev General] rang index for string element

Hello,

I understand Marklogic index words automatically.
What happens if we add range index for the string element?

Is that never needed?
Or the range index could speed up searching on string?

Thanks,
Chunyu
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] rang index for string element

2015-07-03 Thread Rajamani.Marimuthu
Hi Chunyu,

Indexes mainly for performance . Yes , if you are doing search against given 
string element then , you can create range index .

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Chunyu Cong
Sent: Friday, July 03, 2015 6:39 PM
To: General@developer.marklogic.com
Subject: [MarkLogic Dev General] rang index for string element

Hello,

I understand Marklogic index words automatically.
What happens if we add range index for the string element?

Is that never needed?
Or the range index could speed up searching on string?

Thanks,
Chunyu
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] xdmp:lock-acquire

2015-07-03 Thread Rajamani.Marimuthu
Hi Prasanth,

  You meant , same doc locked for two different users even time difference is 
there ?. Did u not get   XDMP-LOCKCONFLICT exception .  Could you explain more 
clearly with test code to give correct solution .


Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Prasanth N V R
Sent: Tuesday, June 30, 2015 7:29 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] xdmp:lock-acquire

Hi,

We have doubt about xdmp:lock-acquire API

In my case I have multiple threads running in multiple servers and making xcc 
connection to ML and executing the adhoc query “xdmp:lock-acquire” to lock one 
particular file.

And each thread uses different userid/pwd for making xcc connections.

But at times we find ML giving empty sequence(which means successfully locked), 
when two Threads make xcc connection in milliseconds difference with respective 
userid/pwd to acquire lock.

Is xdmp:lock-acquire lock synchronized or is there any way to synchronize it in 
ML.

Thanks,
Prasanth

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

2015-07-02 Thread Rajamani.Marimuthu
Hi ,

Yes , you can use the below mentioned code [101 to 200] and so on...

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of ???
Sent: Thursday, July 02, 2015 3:30 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

Assume that the query will return 10,000 nodes, use the query:
cts:search(collection()/patient/link/visit/lab_report[@delete_flag = '0'],
  cts:and-query(

(cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 ">=", xs:dateTime("2010-09-25T00:00:00.000")),

cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 "<=", xs:dateTime("2014-09-25T00:00:00.000")[1 to 100]

i will get 100 nodes of all result, if i want to get the next 100 nodes , can i 
use the bellow query ?

cts:search(collection()/patient/link/visit/lab_report[@delete_flag = '0'],
  cts:and-query(

(cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 ">=", xs:dateTime("2010-09-25T00:00:00.000")),

cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 "<=", xs:dateTime("2014-09-25T00:00:00.000")[100 to 200]

Or how can i get all of the 10,000 nodes while i use pagination concept to 
avoid " XDMP-EXPNTREECACHEFULL"?




>Today's Topics:

>

>   1. Re: XDMP-EXPNTREECACHEFULL error

>  
> (rajamani.marimu...@cognizant.com)

>

>

>--

>

>Message: 1

>Date: Thu, 2 Jul 2015 09:18:51 +

>From: 
>mailto:rajamani.marimu...@cognizant.com>>

>Subject: Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

>To: mailto:general@developer.marklogic.com>>

>Message-ID:

>   
> <122019794b1a814483856cd4d052882a01c4e...@ctsinchnsxmbu.cts.com>

>Content-Type: text/plain; charset="us-ascii"

>

>Hi Zise,

>

>  Always use pagination concept to avoid  " XDMP-EXPNTREECACHEFULL". Your 
> first query returns only the count of the total result, but the second query 
> returns the actual content as result. So, use something start and end values 
> to get your result like [show 1 to 100 results].

>

>See the below query ...

>

>

>cts:search(collection()/patient/link/visit/lab_report[@delete_flag = '0'],

>

>  cts:and-query(

>

>
> (cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
>  ">=", xs:dateTime("2010-09-25T00:00:00.000")),

>
> cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
>  "<=", xs:dateTime("2014-09-25T00:00:00.000")[1 to 10]

>

>Thanks and regards

>Raja >>>

>

>From: 
>general-boun...@developer.marklogic.com
> [mailto:general-boun...@developer.marklogic.com] On Behalf Of ???

>Sent: Thursday, July 02, 2015 2:24 PM

>To: general@developer.marklogic.com

>Subject: Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

>

>

>I had created range index on delete_flag and report_date, and i change my 
>xquery to this:

>

>count(cts:search(collection('test')/patient/link/visit/lab_report[@delete_flag 
>= '0'],

>

>  cts:and-query(

>

>
> (cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
>  ">=", xs:dateTime("2010-09-25T00:00:00.000")),

>

>
> cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
>  "<=", xs:dateTime("2014-09-25T00:00:00.000"));

>

>

>

>and this query can work.

>

>

>

>but if i execute the follow xquery, MarkLogic still will throw an 
>XDMP-EXPNTREECACHEFULL error:

>

>cts:search(collection()/patient/link/visit/lab_report[@delete_flag = '0'],

>

>  cts:and-query(

>

>
> (cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
>  ">=", xs:dateTime("2010-09-25T00:00:00.000")),

>

>
> cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
>  "<=", xs:dateTime("2014-09-25T00:00:00.000");

>

>

>

>the above xquery will return a very large resut set, in this case, what can i 
>do to avoid the  XDMP-EXPNTREECACHEFULL error

>

>

>

>

>

>>

>

>>Message: 1

>

>>Date: Wed, 1 Jul 2015 10:58:24 +0530

>

>>From: Indrajeet Verma 
>>mailto:indrajeet.ve...@gmail.com>>

>

>>Subject: Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

>

>>To: MarkLogic Developer Discussion 
>>mailto:general@developer.marklogic.com>>

>

>>Message-ID:

>

>>   
>> mailto:cakwhaegeh70ro8wgqvmuv3jaqbcmv7u09gnxhnfxmfbv1or...@mail.gmail.com

Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

2015-07-02 Thread Rajamani.Marimuthu
Hi Zise,

  Always use pagination concept to avoid  " XDMP-EXPNTREECACHEFULL". Your first 
query returns only the count of the total result, but the second query returns 
the actual content as result. So, use something start and end values to get 
your result like [show 1 to 100 results].

See the below query ...


cts:search(collection()/patient/link/visit/lab_report[@delete_flag = '0'],

  cts:and-query(


(cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 ">=", xs:dateTime("2010-09-25T00:00:00.000")),

cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 "<=", xs:dateTime("2014-09-25T00:00:00.000")[1 to 10]

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of ???
Sent: Thursday, July 02, 2015 2:24 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error


I had created range index on delete_flag and report_date, and i change my 
xquery to this:

count(cts:search(collection('test')/patient/link/visit/lab_report[@delete_flag 
= '0'],

  cts:and-query(


(cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 ">=", xs:dateTime("2010-09-25T00:00:00.000")),


cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 "<=", xs:dateTime("2014-09-25T00:00:00.000"));



and this query can work.



but if i execute the follow xquery, MarkLogic still will throw an 
XDMP-EXPNTREECACHEFULL error:

cts:search(collection()/patient/link/visit/lab_report[@delete_flag = '0'],

  cts:and-query(


(cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 ">=", xs:dateTime("2010-09-25T00:00:00.000")),


cts:element-attribute-range-query(xs:QName("lab_report"),xs:QName("report_date"),
 "<=", xs:dateTime("2014-09-25T00:00:00.000");



the above xquery will return a very large resut set, in this case, what can i 
do to avoid the  XDMP-EXPNTREECACHEFULL error





>

>Message: 1

>Date: Wed, 1 Jul 2015 10:58:24 +0530

>From: Indrajeet Verma 
>mailto:indrajeet.ve...@gmail.com>>

>Subject: Re: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

>To: MarkLogic Developer Discussion 
>mailto:general@developer.marklogic.com>>

>Message-ID:

>   
> mailto:cakwhaegeh70ro8wgqvmuv3jaqbcmv7u09gnxhnfxmfbv1or...@mail.gmail.com>>

>Content-Type: text/plain; charset="utf-8"

>

>In Addition of Asit response,

>

>You should go with cts:element-values() and you should create cts:and-query

>and inside it cts:range-query for the dates and flag.

>

>Create range index for lab_report, report_date and delete_flag.

>

>Let me know if you want any help in creating query.

>

>Regards,

>Indy

>

>On Wed, Jul 1, 2015 at 10:45 AM, Asit Nautiyal 
>mailto:asitnauti...@outlook.com>>

>wrote:

>

>> Hi Zise,

>>

>> By observing below code, it will hit performance for sure and that's why

>> your are getting XDMP-EXPNTREECACHEFULL error.

>> To avoid XDMP-EXPNTREECACHEFULL error you have to tune your code. Use

>> cts:queries (like range queries and others) to get your result first and

>> then you can use count.

>>

>> Please go through the below link :

>>

>> https://docs.marklogic.com/guide/performance

>>

>>

>> Regards,

>> Asit Nautiyal

>> --

>> Date: Wed, 1 Jul 2015 10:11:01 +0800

>> From: zisedeq...@163.com

>> To: general@developer.marklogic.com

>> Subject: [MarkLogic Dev General] XDMP-EXPNTREECACHEFULL error

>>

>>

>> when i execute the following xquery , marklogic throw an

>> XDMP-EXPNTREECACHEFULL error:

>> count(for $i in collection('test')/patient/link/visit/lab_report

>> where $i /@report_date >= '2010-09-25T00:00:00.000' and $i/@ report_date

>> <= '2014-09-25T00:00:00.000' and $i/@delete_flag = '0'

>> return $i)

>>

>> I can not increase size of expanded tree cache, so what i can do to avoid

>> the XDMP-EXPNTREECACHEFULL error while the query resturn the very large

>> results

>>

>>

>>

>> ___ General mailing list

>> General@developer.marklogic.com 
>> Manage your subscription at:

>> http://developer.marklogic.com/mailman/listinfo/general

>>

>> ___

>> General mailing list

>> General@developer.marklogic.com

>> Manage your subscription at:

>> http://developer.marklogic.com/mailman/listinfo/general

>>

>>

>-- next part --

>An HTML attachment was scrubbed...

>URL: 
>http://developer.marklogic.com/pipermail/general/attachments/20150701/e5ad4c84/attachment-0001.html

>

>--

>

>Message: 2

>Date: Wed, 1 Jul 2015 13:46:50 +

>From: Dave Cassel mailto:dave.cas...@marklogic.com>>

>Subject: 

Re: [MarkLogic Dev General] Mark logic downgrade issue

2015-06-29 Thread Rajamani.Marimuthu
Hi Mohit ,

Normally, downgrade  is not recommended as latest version have lot of new fixes 
and features .  There is a change needed for your REST configuration .

In MarkLogic 7, App Servers that are REST API Instances used a different URL 
rewriter than in MarkLogic 8. In MarkLogic 8, the App Server is configured to 
use the declarative rewriter. Pls refer the below mentioned document for clear 
understanding :

https://docs.marklogic.com/guide/app-dev/XMLrewriter#


thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Agarwal, Mohit 
,Crest
Sent: Monday, June 29, 2015 4:15 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Mark logic downgrade issue

Hi,
I have downgraded from ML 8 to ML 7.5 on my mac machine.

I am getting the below error after downgrading.


500: Internal Server Error
SEC-INVAMP: (rest:rewrite($config:OPTIONS, "uri"), xdmp:get-request-url())[1] 
-- Invalid amp: doc(http://marklogic.com/xdmp/amps/1091766101199946196)
In /rewriter.xqy on line 11

Mohit
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Can anyone tell me why the result of the second xqery is empy?

2015-06-29 Thread Rajamani.Marimuthu
Yes, As Asit mentioned both operators have significant difference . Here one 
more point about this operators . As per XQeury 1.0 strict  and 0.9-ml version 
both will throw error if you not properly used both operators , But 1.0-ml , 
it’s doesn’t have any special difference , both will act as same unless 
otherwise you mention function mapping in the beginning of your XQuery code.


Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Asit Nautiyal
Sent: Monday, June 29, 2015 2:50 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?

There was a difference between = and eq.eq is item operator, use for 
matching same item and = is sequence operator, use for matching in a sequence. 
MarkLogic 5.0 onwards both work similarly.  But, for mail trail's code, it's 
behaviour is  different as I tried in ML 8.


Date: Mon, 29 Jun 2015 14:37:28 +0530
From: indrajeet.ve...@gmail.com
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?
Geert,

I was looking into the difference between eq and = in MarkLogic and found one 
article and it says "in the "1.0-ml" version of XQuery, there's no difference 
in behavior. eq behaves the same as =, etc." for more information please refer 
"https://developer.marklogic.com/blog/comparison-operators-whats-the-difference";

Are you referring the same of some other issue of =/eq?

Regards,
Indy


On Mon, Jun 29, 2015 at 1:46 PM, Geert Josten 
mailto:geert.jos...@marklogic.com>> wrote:
Replacing = with eq also works. I’ll file a bug, this is odd behavior..

Cheers

From: Asit Nautiyal mailto:asitnauti...@outlook.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, June 29, 2015 at 9:25 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>

Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?

Hi Raja,

That's what i wrote in my first reply, code will work with predicate[ ].


Regards,
Asit Nautiyal

From: rajamani.marimu...@cognizant.com
To: general@developer.marklogic.com
Date: Mon, 29 Jun 2015 07:22:43 +
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?
Hi All,

Below options  also working .

for $i in collection("test")/catalog/product[@dept = "WMN"]/name
return $i,

for $i in collection('test')/catalog/product/name

return $i[../@dept = "WMN"]

By
Raja >>>

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Asit Nautiyal
Sent: Monday, June 29, 2015 12:37 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?

Hi Geert,

Below code is working fine, if we are assigning xml document in a variable, as 
you are doing.

 for $i in $xml/catalog/product/name
where $i/../@dept = 'WMN'
return $i

But, while using collection (retrieving document from MarkLogic collection) 
above code won't work.

It is working with below code :

for $i in collection('SAMPLE')/catalog/product/name
where $i/..[@dept = 'WMN']
return $i

Regards,
Asit Nautiyal

From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Mon, 29 Jun 2015 06:58:38 +
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?
This works just fine for me:

let $xml := document{


557
Fleece Pullover
navy black


563
Floppy Sun Hat


443
Deluxe Travel Bag


784
Cotton Dress Shirt
white gray
Our favorite shirt!


}
return (
for $i in $xml/catalog/product
where $i/@dept = 'WMN'
return $i/name,

for $i in $xml/catalog/product/name
where $i/../@dept = 'WMN'
return $i
)

I am getting Fleece Pullover twice..

Cheers,
Geert

From: 张晓博 mailto:zisedeq...@163.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, June 29, 2015 at 3:25 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Can anyone tell me why the result of th

Re: [MarkLogic Dev General] Can anyone tell me why the result of the second xqery is empy?

2015-06-29 Thread Rajamani.Marimuthu
Hi All,

Below options  also working .

for $i in collection("test")/catalog/product[@dept = "WMN"]/name
return $i,

for $i in collection('test')/catalog/product/name

return $i[../@dept = "WMN"]

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Asit Nautiyal
Sent: Monday, June 29, 2015 12:37 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?

Hi Geert,

Below code is working fine, if we are assigning xml document in a variable, as 
you are doing.

 for $i in $xml/catalog/product/name
where $i/../@dept = 'WMN'
return $i

But, while using collection (retrieving document from MarkLogic collection) 
above code won't work.

It is working with below code :

for $i in collection('SAMPLE')/catalog/product/name
where $i/..[@dept = 'WMN']
return $i

Regards,
Asit Nautiyal

From: geert.jos...@marklogic.com
To: general@developer.marklogic.com
Date: Mon, 29 Jun 2015 06:58:38 +
Subject: Re: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?
This works just fine for me:

let $xml := document{


557
Fleece Pullover
navy black


563
Floppy Sun Hat


443
Deluxe Travel Bag


784
Cotton Dress Shirt
white gray
Our favorite shirt!


}
return (
for $i in $xml/catalog/product
where $i/@dept = 'WMN'
return $i/name,

for $i in $xml/catalog/product/name
where $i/../@dept = 'WMN'
return $i
)

I am getting Fleece Pullover twice..

Cheers,
Geert

From: 张晓博 mailto:zisedeq...@163.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Monday, June 29, 2015 at 3:25 AM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] Can anyone tell me why the result of the 
second xqery is empy?

There is one XML document stored in my database, the content of the XML 
document is:


557
Fleece Pullover
navy black


563
Floppy Sun Hat


443
Deluxe Travel Bag


784
Cotton Dress Shirt
white gray
Our favorite shirt!



when i execute the follow xquery :
for $i in 
collection('http://marklogic.com/xdmp/test')/catalog/product
where $i/@dept = 'WMN'
return $i/name;
the result is:

Fleece Pullover

But, if i use the follow xquery to do the same thing, the result will be empty

for $i in 
collection('http://marklogic.com/xdmp/test')/catalog/product/name
where $i/../@dept = 'WMN'
return $i;

Can anyone tell me why the result of second xqery is empy?




___ General mailing list 
General@developer.marklogic.com Manage 
your subscription at: http://developer.marklogic.com/mailman/listinfo/general
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] _Accesslog.txt - Switching it off

2015-06-26 Thread Rajamani.Marimuthu
Hi Abhijeet,

All Log information configured in Group level. By default ML sends Log messages 
to operating system log and ML log file, but both logs may not receive same 
number of messages . So , always recommended to enhance system performance , 
the system logs should receive lesser message than ML log files .

"By default, the system log for a group is set to Notice while the file log is 
set to Info. As such, the system log receives fewer log messages than the file 
log. You may change these settings to suit your needs. For example, if you are 
debugging a system problem, you may want to set the level to Debug to get more 
information. Keep in mind that log levels Debug and above degrade system 
performance significantly, so these log levels should not normally be used."

There are no option available to completely switch of the AccessLog in ML.

Thanks and regards
Raja >>>


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of 
abhijeet-a.si...@ubs.com
Sent: Friday, June 26, 2015 3:58 PM
To: general@developer.marklogic.com
Cc: uk.prithvi...@ubs.com
Subject: [MarkLogic Dev General] _Accesslog.txt - Switching it off

Hi,

We would like to see the impact on CPU Utilization by playing with AccessLog 
control. (same as of ErrorLog controls )
Please advise if we can switch off the AccessLog at all.

Thanks & regards,
Abhijeet
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] cts query question

2015-06-26 Thread Rajamani.Marimuthu
Hi Chunyu,

As Indy said, that option is available by default … If  you expect other than 
that  pls explain clearly to give correct solution .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Indrajeet Verma
Sent: Friday, June 26, 2015 3:27 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] cts query question

Hi Chunyu,

Cts:element-query does,

Returns a cts:query matching elements by name with the content constrained by 
the given cts:query in the second parameter. Searches for matches in the 
specified element and all of its descendants. If the specified query in the 
second parameter has any cts:element-attribute-*-query constructors, it will 
search attributes directly on the specified element and attributes on any 
descendant elements (see thesecond 
example below)

Yes other searches in the specified element.

Regards,
Indy

On Fri, Jun 26, 2015 at 2:42 PM, Chunyu Cong 
mailto:congchu...@gmail.com>> wrote:
Hello,

I read through the following cts query functions and etc.

Can I say only cts:element-query looks up itself and descendent children by 
default?


All the other functions are only search itself element with its text() node by 
default.

cts:element-value-query
cts:element-word-query
cts:element-word-match
...

Thanks,
Chunyu

___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Indexing strategy for attributes when using xdmp:xlst-invoke

2015-06-25 Thread Rajamani.Marimuthu
Hi Team,

 As Florent Georges mentioned , the XML Spec  clearly says , if xml:lang 
specified in the given XML Element , it must follow the given language standard 
, unless otherwise , it will be overridden by new xml:lang for the same element 
.

"
The language specified by xml:lang applies to the element where it is specified 
(including the values of its attributes), and to all elements in its content 
unless overridden with another instance of xml:lang. In particular, the empty 
value of xml:lang is used on an element B to override a specification of 
xml:lang on an enclosing element A, without specifying another language. Within 
B, it is considered that there is no language information available, just as if 
xml:lang had not been specified on B or any of its ancestors. Applications 
determine which of an element's attribute values and which parts of its 
character content, if any, are treated as language-dependent values described 
by xml:lang.

"

Thanks and regards
Raja >>>

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges
Sent: Thursday, June 25, 2015 5:58 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Indexing strategy for attributes when 
using xdmp:xlst-invoke

On 25 June 2015 at 13:26, David Lee wrote:

> The docs are pretty clear that the xml:lang  affects the language of
> the *child text* of elements,

  The XML spec says :

The language specified by xml:lang applies to the element where it is
specified (including the values of its attributes)

  Regards,

--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Create Http Server Tutorial

2015-06-05 Thread Rajamani.Marimuthu
Hi Martin,

Did u check the modules location : either mentioned filesystem or modules db to 
store all your application xquery codes .

Thanks and regards
Raja >>>


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Martin Vollmer 
(hotmail)
Sent: Friday, June 05, 2015 1:03 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Create Http Server Tutorial

Dear MarkLogic Devs,

I started to create a http Server in MarkLogic 8 on Windows exactly following 
the steps in here:

http://docs.marklogic.com/guide/getting-started/xquery#id_70912

But when I try to call the xqy Files via http://localhost:8005/Test/load.xqy I 
always get a 404. I tried it on two different machines.

BTW I can access the xqy file when I am using 
http://localhost:8000/Test/load.xqy but then the Doc is stored in the 
AppServices DB.

Any Hints?

Martin Vollmer
Staufener Str. 6
81245 München
Tel.:   +49 89 354 5283
Mobil:   +49 176 993 994 38

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Roxy bootstrap command throwing 404 - Not Found error - reg.,

2015-05-28 Thread Rajamani.Marimuthu
Hi Santhosh,

By default , roxy deployer have three env details like - local, dev and prod. 
Did you try with other two than the dev settings .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, May 28, 2015 5:40 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Roxy bootstrap command throwing 404 - Not 
Found error - reg.,

Hi Santhosh,

What happens when you open http://10.134.125.138:8000/qconsole in a browser?

Cheers

From: 
"santhosh.rajasekar...@cognizant.com"
 
mailto:santhosh.rajasekar...@cognizant.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, May 28, 2015 at 1:03 PM
To: "general@developer.marklogic.com" 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] Roxy bootstrap command throwing 404 - Not 
Found error - reg.,

Hi Team,

We are using roxy deployer, I am getting 404- Not Found error 
when executing "bootstrap" command.

Command: ml qa bootstrap

Same thing is working in DEV environment, "ml dev bootstrap" is working fine. 
To deploy the code in QA environment, I have created new properties file 
"qa.properties" and provided the value for "qa-server" in the build.properties 
file.

Please suggest.

Error Message:

D:\wbworkspace\authentication-services>ml qa bootstrap
Bootstrapping your project into MarkLogic 7 on 10.134.125.138...
Password for admin user:
ERROR: 404 "Not Found"
ERROR: http://www.w3.org/TR/html4/loose.dtd";>
System Error has 
occurredResponse Code:404 Not 
FoundInformation:Stack Trace:style="padding-left: 25px;"/>

Thanks & Regards,
Santhosh
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] using collection and range in default-suggestion-source

2015-05-28 Thread Rajamani.Marimuthu
Hi David,

Test with the following code , Its working for me . Here I created two 
collections "cdcollection" and "cd1collection" , and inserted sample CD xml 
file with range index for "TITLE" element in both collection with small changes 
in the TITLE value like 1.xml have "Empire" and 2.xml have "Empower". Then run 
the below mentioned query.

xquery version "1.0-ml";
import module namespace search = "http://marklogic.com/appservices/search";
at "/MarkLogic/appservices/search/search.xqy";

let $options :=
http://marklogic.com/appservices/search";>

   http://marklogic.com/collation/";
  type="xs:string" facet="true">
  
   

{cts:collection-query("cd1collection")}
  

return search:suggest("Emp",$options)

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Steiner, David J. 
(LNG-DAY)
Sent: Wednesday, May 27, 2015 7:46 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] using collection and range in 
default-suggestion-source

Hi Raja,

This doesn't work.  I get the same result whether I specify collections that I 
want or collections that I don't want - as long as it is a valid collection or 
collections, I get the same result.

Thanks,
David

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of 
rajamani.marimu...@cognizant.com
Sent: Wednesday, May 27, 2015 8:59 AM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] using collection and range in 
default-suggestion-source

Hi David ,

In your  search:suggest query , have option called $query as last parameter , 
there you can specify structured query for your collection requirement ,like


  
reports
analysis
  



Thanks and regards
Raja >>>

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Steiner, David 
J. (LNG-DAY)
Sent: Wednesday, May 27, 2015 6:06 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] using collection and range in 
default-suggestion-source

I'd like to restrict my suggestions based upon collections (1 to N) for a given 
range element.  I've tried adding  element(s) to the options but 
once I add it, I get no results back.

This works:
http://marklogic.com/appservices/search";>

   http://marklogic.com/collation/";
  type="xs:string" facet="true">
  
   



This does not:
http://marklogic.com/appservices/search";>

   http://marklogic.com/collation/";
  type="xs:string" facet="true">
  
   
  collection1



The documentation says, "The default-suggestion-source element can have zero or 
more of the following child elements:

...

...

...

..."

So, is it not possible to combine ranges and collections, or am I just not 
doing it correctly?

Thanks,
David
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] using collection and range in default-suggestion-source

2015-05-27 Thread Rajamani.Marimuthu
Hi David ,

In your  search:suggest query , have option called $query as last parameter , 
there you can specify structured query for your collection requirement ,like


  
reports
analysis
  



Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Steiner, David J. 
(LNG-DAY)
Sent: Wednesday, May 27, 2015 6:06 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] using collection and range in 
default-suggestion-source

I'd like to restrict my suggestions based upon collections (1 to N) for a given 
range element.  I've tried adding  element(s) to the options but 
once I add it, I get no results back.

This works:
http://marklogic.com/appservices/search";>

   http://marklogic.com/collation/";
  type="xs:string" facet="true">
  
   



This does not:
http://marklogic.com/appservices/search";>

   http://marklogic.com/collation/";
  type="xs:string" facet="true">
  
   
  collection1



The documentation says, "The default-suggestion-source element can have zero or 
more of the following child elements:

...

...

...

..."

So, is it not possible to combine ranges and collections, or am I just not 
doing it correctly?

Thanks,
David
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] query on xml

2015-05-15 Thread Rajamani.Marimuthu
Hi Pragya ,

Let me know the output format of the below xml . then will give better solution

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Friday, May 15, 2015 4:13 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml


Hi Raja,



The name structure is not mandatory. none of the element is mandatory.







  -- 

 -- 

 --- 





 or









  -- 

 -- 

 --- 



​

or







  -- 

  -- 

 -- 

 -- 

 --- 

-





​​

 an so on...




From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
rajamani.marimu...@cognizant.com 
mailto:rajamani.marimu...@cognizant.com>>
Sent: Friday, May 15, 2015 3:58 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml


Hi Pragya,



  The ‘n’ number of elements in result means – like below structure









  -- 

 -- 

 --- 







Am not able to understand , because in below xml also you have only two 
combinations . IS  element is mandatory?



Thanks and regards

Raja >>>



From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Friday, May 15, 2015 9:35 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] query on xml



Thanks Indy.

But, The input  could have 'n' number of dynamic elements.



From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Indrajeet Verma 
mailto:indrajeet.ve...@gmail.com>>
Sent: Thursday, May 14, 2015 6:16 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] query on xml



Pragya,



See if below code works for you.



If your input  can contain only two elements combination, Try below 
code changes in Raja's code,



declare function local:transform($result as node()){



let $elements := fn:distinct-values($result/child::*/name(.))

for $token_one in $result/*[name(.) eq ($elements)[1]], $token_two in 
$result/*[name(.) eq ($elements)[2]]

return {($token_one,$token_two)}

};





Regards,

Indy



On Thu, May 14, 2015 at 4:42 PM, Kapoor, Pragya 
mailto:pkapo...@innodata.com>> wrote:

Yes Raja, I mean two or more elements other than name and law.



So my input xml could be:







thg

rty





gux

rty





abc

xyz

cde

​fgd



​





From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
rajamani.marimu...@cognizant.com 
mailto:rajamani.marimu...@cognizant.com>>
Sent: Thursday, May 14, 2015 3:05 PM

To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml



Hi Pragya,



You meant, you will get some other  element than “ name” and “Law” ? If that is 
not a case and will get these two elements with different count then will use 
the same code.



Thanks and regards

Raja >>>



From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Kapoor, Pragya
Sent: Thursday, May 14, 2015 2:56 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml



Thanks for the solution, but as mentioned in my previous mail,

the elements in input xml are dynamic, so I cant use



for $name in $result/Name, $law in $result/Law

return {($name,$law)}​



Thanks

Pragya





From: 
general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] query on xml

2015-05-15 Thread Rajamani.Marimuthu
Hi Pragya,

  The ‘n’ number of elements in result means – like below structure




  -- 
 -- 
 --- 



Am not able to understand , because in below xml also you have only two 
combinations . IS  element is mandatory?

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Friday, May 15, 2015 9:35 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] query on xml


Thanks Indy.

But, The input  could have 'n' number of dynamic elements.


From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of Indrajeet Verma 
mailto:indrajeet.ve...@gmail.com>>
Sent: Thursday, May 14, 2015 6:16 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] query on xml

Pragya,

See if below code works for you.

If your input  can contain only two elements combination, Try below 
code changes in Raja's code,

declare function local:transform($result as node()){

let $elements := fn:distinct-values($result/child::*/name(.))
for $token_one in $result/*[name(.) eq ($elements)[1]], $token_two in 
$result/*[name(.) eq ($elements)[2]]
return {($token_one,$token_two)}
};


Regards,
Indy

On Thu, May 14, 2015 at 4:42 PM, Kapoor, Pragya 
mailto:pkapo...@innodata.com>> wrote:

Yes Raja, I mean two or more elements other than name and law.



So my input xml could be:







thg

rty





gux

rty





abc

xyz

cde

​fgd



​




From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
rajamani.marimu...@cognizant.com 
mailto:rajamani.marimu...@cognizant.com>>
Sent: Thursday, May 14, 2015 3:05 PM

To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml


Hi Pragya,



You meant, you will get some other  element than “ name” and “Law” ? If that is 
not a case and will get these two elements with different count then will use 
the same code.



Thanks and regards

Raja >>>



From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of Kapoor, Pragya
Sent: Thursday, May 14, 2015 2:56 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml



Thanks for the solution, but as mentioned in my previous mail,

the elements in input xml are dynamic, so I cant use



for $name in $result/Name, $law in $result/Law

return {($name,$law)}​



Thanks

Pragya





From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
rajamani.marimu...@cognizant.com 
mailto:rajamani.marimu...@cognizant.com>>
Sent: Thursday, May 14, 2015 1:39 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml



Hi Pragya,



Following code should give the expected result ,

xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";;



declare function local:transform($result as node()){



for $name in $result/Name, $law in $result/Law

return {($name,$law)}



};

let $data := 



thg

rty

England and Wales

Latvia





gux

India





abc

xyz

cde

England







let $result :={ for $result in $data/result

  return local:transform($result)

  }

return $result



Thanks and regards

Raja >>>





From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Thursday, May 14, 2015 1:05 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] query on xml



Hi,



I need to convert the below input to the desired output.

The elements in the input xml is dynamic(it could be one element,two,three n so 
on, not fixed).



Input:









thg

rty

England and Wales

Latvia





gux

India





abc

xyz

cde

England



​



desired output:







thg

 

Re: [MarkLogic Dev General] query on xml

2015-05-14 Thread Rajamani.Marimuthu
Hi Pragya,

You meant, you will get some other  element than “ name” and “Law” ? If that is 
not a case and will get these two elements with different count then will use 
the same code.

Thanks and regards
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Thursday, May 14, 2015 2:56 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml


Thanks for the solution, but as mentioned in my previous mail,

the elements in input xml are dynamic, so I cant use



for $name in $result/Name, $law in $result/Law

return {($name,$law)}​



Thanks

Pragya




From: 
general-boun...@developer.marklogic.com
 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of 
rajamani.marimu...@cognizant.com 
mailto:rajamani.marimu...@cognizant.com>>
Sent: Thursday, May 14, 2015 1:39 PM
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] query on xml


Hi Pragya,



Following code should give the expected result ,

xquery version "1.0-ml";

declare namespace html = "http://www.w3.org/1999/xhtml";;



declare function local:transform($result as node()){



for $name in $result/Name, $law in $result/Law

return {($name,$law)}



};

let $data := 



thg

rty

England and Wales

Latvia





gux

India





abc

xyz

cde

England







let $result :={ for $result in $data/result

  return local:transform($result)

  }

return $result



Thanks and regards

Raja >>>





From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Thursday, May 14, 2015 1:05 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] query on xml



Hi,



I need to convert the below input to the desired output.

The elements in the input xml is dynamic(it could be one element,two,three n so 
on, not fixed).



Input:









thg

rty

England and Wales

Latvia





gux

India





abc

xyz

cde

England



​



desired output:







thg

England and Wales



thg

Latvia



rty

England and Wales​



rty

Latvia​



gux

India





abc

England





xyz

England





cde

England



​



Thanks

Pragya



"This e-mail and any attachments transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential , proprietary or 
privileged information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this e-mail or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful."
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
"This e-mail and any attachments transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential , proprietary or 
privileged information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this e-mail or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful."
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by

Re: [MarkLogic Dev General] query on xml

2015-05-14 Thread Rajamani.Marimuthu
Hi Pragya,

Following code should give the expected result ,
xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;

declare function local:transform($result as node()){

for $name in $result/Name, $law in $result/Law
return {($name,$law)}

};
let $data := 

thg
rty
England and Wales
Latvia


gux
India


abc
xyz
cde
England



let $result :={ for $result in $data/result
  return local:transform($result)
  }
return $result

Thanks and regards
Raja >>>


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Thursday, May 14, 2015 1:05 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] query on xml


Hi,



I need to convert the below input to the desired output.

The elements in the input xml is dynamic(it could be one element,two,three n so 
on, not fixed).



Input:





thg
rty
England and Wales
Latvia


gux
India


abc
xyz
cde
England

​

desired output:



thg
England and Wales

thg
Latvia

rty
England and Wales​

rty
Latvia​

gux
India


abc
England


xyz
England


cde
England

​

Thanks
Pragya


"This e-mail and any attachments transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential , proprietary or 
privileged information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this e-mail or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful."
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Is data also store in forest

2015-04-27 Thread Rajamani.Marimuthu
Hi Shashi,

Yes, You can delete the data once the ML ingestion s done. And always configure 
the great disk space for the forest more than the actual content size 
recommended by ML .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Shashidhar Rao
Sent: Tuesday, April 28, 2015 11:23 AM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Is data also store in forest

Hi,
We are running out of disk space due to the indexing .
Could some answer a basic question.
I have loaded data to Marklogic server from /home/data/data1 . Now the loading 
is finished and re-indexing and merging started.

Does Marklogic server still require data to be in /home/data/data1 or can this 
data be deleted .
I have always assumed that even after loading the data from the path above 
Marklogic still requires data to be in this folder.
Basically I want the data to be deleted once the loading is complete as space 
is running out due to heavy re-indexing.
Thanks

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] XDMP-CANCELED

2015-04-27 Thread Rajamani.Marimuthu
Hi Pragya ,

Did u check  default time limit setting for an application server or Task 
server.  Because this XDMP-Cancelled message will happen either explicit 
operation performed or  a result of a system event l XDMP-EXTIME  will trigger 
the above message .

Give some more details .to find out exact root cause .

By
Raja >>>
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Kapoor, Pragya
Sent: Monday, April 27, 2015 3:48 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] XDMP-CANCELED


Hi,



I am running an xquery file which is automatically getting cancelled after an 
hour.

In logs, I can see an error for XDMP-CANCELED.



The timeout for the app server is 10 hours



Why is this happening?



Thanks

Pragya


"This e-mail and any attachments transmitted with it are for the sole use of 
the intended recipient(s) and may contain confidential , proprietary or 
privileged information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this e-mail or any action taken in reliance on this e-mail is 
strictly prohibited and may be unlawful."
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Forest Warning

2015-04-23 Thread Rajamani.Marimuthu
Hi Shashidhar,

How you configured the forest and in memory allocations . Looks like your in 
memory and list cache is in weak configuration . and normally 200GB recommended 
per forest and relatively allocate in memory size .

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Shashidhar Rao
Sent: Thursday, April 23, 2015 1:58 PM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Forest Warning

Hi,
Can somebody help me how to fix this issue
There is currently an XDMP-FORESTERR: Error in reindex of forest PROD_DB_1: 
XDMP-REINDEX: Error reindexing 
fn:doc("/home/data/Folder2/US07625699-20091201-T2.XML"): XDMP-FRAGTOOLARGE: 
Fragment of /home/data/Folder2/US07625699-20091201-T2.XML too large for 
in-memory storage: XDMP-INMMLISTFULL: In-memory list storage full; list: 
table=100%, wordsused=50%, wordsfree=25%, overhead=25%; tree: table=0%, 
wordsused=6%, wordsfree=94%, overhead=0% exception. Information on this page 
may be missing.

It says US07625699-20091201-T2.XML too large.
what are the other options any suggestions would be helpful.
Is deleting this file an option as the last resort?

Thanks

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Wildcarded author search

2015-04-22 Thread Rajamani.Marimuthu
Hi Danny,

You may check with the following code if its fit for your requirement.

xquery version "1.0-ml";
declare namespace html = "http://www.w3.org/1999/xhtml";;
import module namespace search="http://marklogic.com/appservices/search";
at "/MarkLogic/appservices/search/search.xqy";

declare variable $OPTIONS :=
http://marklogic.com/appservices/search";>
 
 

/contrib-group/contrib[@contrib-type='author']/author-name-string
   

true
 ;

let $options :=
http://marklogic.com/appservices/search";>
{$OPTIONS/*}

let $results := search:search("*Ph.D.", $options)
return $results

By
Raja

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Indrajeet Verma
Sent: Wednesday, April 22, 2015 11:50 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Wildcarded author search

Hi Danny,

I am not sure if below query fits in your requirement however see if this can. 
You can create your search:query based on your need and also enhance $options

declare variable $OPTIONS :=
 http://marklogic.com/appservices/search";>
 
 

/contrib-group/contrib[@contrib-type='author']/author-name-string
   

true
 ;

let $options :=
http://marklogic.com/appservices/search";>
{$OPTIONS/*}

let $results := search:values('author-path', $options,   search:parse("John", 
(), "search:query"))
return $results

Regards,
Indrajeet


On Wed, Apr 22, 2015 at 7:37 AM, Danny Sinang 
mailto:d.sin...@gmail.com>> wrote:
I came up with the solution below.

Maybe someone else here has a better approach.


let $path := 
"/contrib-group/contrib[@contrib-type='author']/author-name-string"

let $collation := "http://marklogic.com/collation/en/S2";
let $options := ("type=string", "collation=" || $collation)
let $ref := cts:path-reference($path, $options)
let $value-matches := let $matches := cts:value-match ($ref, 
$author)
  return
if ($matches) then
$matches
else
""
return
cts:path-range-query ($path, "=", $value-matches, 
"collation=" || $collation)

On Tue, Apr 21, 2015 at 8:39 PM, Danny Sinang 
mailto:d.sin...@gmail.com>> wrote:
We've got article authors stored like this :




John Baker, 
Ph.D.



Sarah Reynolds, 
Ph.D.






And we'd like the following search strings match the first contrib node above :

1. john*

2. john Bak*

3. *Baker*

And we'd like this search string match both both contrib nodes above :

*Ph.D.



My questions are :

1. What database index settings do I need to set (e.g. trailing wildcard, etc) ?

2. What kind of indexes do I need to make ?

3. What search API options do I need to create ?

4. If I need to create a custom constraint that returns a cts query, what cts 
query option should I use ?



I've tried creating custom constraints that return either 
cts:element-value-query or cts:element-word-query but I seem to be getting 
false positives. For example, if I search for john ba*, I get articles with 
authors named John (some other surname), or Brian Bass.



Regards,

Danny










___
General mailing list
General@developer.marklogic.com
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Advanced search support for Greek language in Marklogic

2015-03-27 Thread Rajamani.Marimuthu
Hi Vimal,

   Even Greek is fall under generic language list, still u can use stemming and 
tokenization in generic way. If u have more specific points for your scenario 
then will get better solution from the forum .

By
Raja >>>


From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of vimal c
Sent: Friday, March 27, 2015 4:13 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Advanced search support for Greek language 
in Marklogic

Hi Rajamani,

Thanks for your reply. Yes, I too have gone through that page. Just wanted to 
know if anyone have come across a situation like me and how they have solved it.

If contacting Marklogic directly is the only option, anyone Please guide me.

Thanks,
Vimal C

On Fri, Mar 27, 2015 at 3:19 PM, 
mailto:rajamani.marimu...@cognizant.com>> 
wrote:
Hi Vimal,

   As of now , they have advanced support for 15 languages which are widely 
used in the world . If u need support for Greek,  they suggested to contact 
directly them.

By
Raja >>>

From: 
general-boun...@developer.marklogic.com
 
[mailto:general-boun...@developer.marklogic.com]
 On Behalf Of vimal c
Sent: Friday, March 27, 2015 3:02 PM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Advanced search support for Greek language in 
Marklogic

Hi Everyone,

From Marklogic documentation on language support, I come to know that Greek 
falls under 'Basic Language support' list.

Can you please let me know whether Marklogic provides advanced search(stemming, 
tokenizing...) support for Greek Language (with/without license)?


Thanks,
Vimal C
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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/listinfo/general

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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/listinfo/general


Re: [MarkLogic Dev General] Advanced search support for Greek language in Marklogic

2015-03-27 Thread Rajamani.Marimuthu
Hi Vimal,

   As of now , they have advanced support for 15 languages which are widely 
used in the world . If u need support for Greek,  they suggested to contact 
directly them.

By
Raja >>>

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of vimal c
Sent: Friday, March 27, 2015 3:02 PM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Advanced search support for Greek language in 
Marklogic

Hi Everyone,

From Marklogic documentation on language support, I come to know that Greek 
falls under 'Basic Language support' list.

Can you please let me know whether Marklogic provides advanced search(stemming, 
tokenizing...) support for Greek Language (with/without license)?


Thanks,
Vimal C
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted 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/listinfo/general