[MarkLogic Dev General] Search for Sub Tag Text

2015-10-20 Thread Ashutosh Trivedi
Hi,

I am trying to search below xml  document which contains co2 in which 2 is sub 
tags of the text co2  highlighted in yellow.

http://sometext.com/ns/core"; 
xmlns:f="http://sometext.com/ns/fields"; xmlns:a="http://sometext.com/ns/assets";>
  id1
  

  Henkel has increased its stake in Russian detergents producer
  Era, based in Tosno near St Petersburg to almost 80% through
  the acquisition of an additional 3.1% of the company's shares
  for $240 000. A Henkel-financed $21m capital spending
  programme, aimed at modernising production facilities at Era,
  is proceeding according to plan and is to be completed by Q3
  1997.co2

  


The Query Generated By Marklogic is as follows  pattern highlighted in yellow:


http://marklogic.com/cts";>
 
   
   http://sometext.com/ns/core";>c:released-on
   http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>2015-10-19T09:47:00Z
   
 
 
   
   urn:iddn:collections:kind/news-article
   
 
 
   http://sometext.com/ns/fields";>f:body
   
   co2
   case-insensitive
   diacritic-sensitive
   punctuation-insensitive
   whitespace-sensitive
   unstemmed
   unwildcarded
   
 
 
   
   http://sometext.com/ns/core";>c:expires-on
   http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>2015-10-19T09:47:17.571Z
   
   
   
 http://sometext.com/ns/core";>c:expires-on
 *
 wildcarded
   
   
 
   


But I did not get any record with this cts query.

cts:search(fn:doc(),
cts:query($cts-query), "unfiltered")


if I change the pattern with co 2 . ie insert a space in between the sub tag 
the query works fine.

Any help is appreciated how should I search this document without providing 
space for sub tag text.

Thanks
Ashutosh Trivedi





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


[MarkLogic Dev General] Creating REST END Points

2014-10-27 Thread Ashutosh Trivedi
Hi,

I am new in MarkLogic and I have a requirement to create and handle the REST 
End Points in MarkLogic Server Manually.
If anyone has handle it please provide the step.


Thanks
Ashutosh Trivedi
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general