<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for XQueryHacker</title>
	<atom:link href="http://www.xqueryhacker.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xqueryhacker.com</link>
	<description>XQuery and MarkLogic development</description>
	<lastBuildDate>Fri, 20 Jan 2012 11:22:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
	<item>
		<title>Comment on xray &#8211; an XQuery test framework by Gary Vidal</title>
		<link>http://www.xqueryhacker.com/2012/01/xray-an-xquery-test-framework/#comment-4626</link>
		<dc:creator>Gary Vidal</dc:creator>
		<pubDate>Fri, 20 Jan 2012 11:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=295#comment-4626</guid>
		<description>Dude, you totally beat me to the punch on this, Great work!!!!.  Long Live Open Source.</description>
		<content:encoded><![CDATA[<p>Dude, you totally beat me to the punch on this, Great work!!!!.  Long Live Open Source.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MarkLogic XQuery performance tuning &#8211; computing facets concurrently by Rob</title>
		<link>http://www.xqueryhacker.com/2012/01/marklogic-xquery-performance-tuning-computing-facets-concurrently/#comment-4412</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 03 Jan 2012 20:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=285#comment-4412</guid>
		<description>Hi Geert,  yep but tend to use the limit option instead as I&#039;m led to believe it&#039;s slightly quicker, although never compared timings.</description>
		<content:encoded><![CDATA[<p>Hi Geert,  yep but tend to use the limit option instead as I&#8217;m led to believe it&#8217;s slightly quicker, although never compared timings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MarkLogic XQuery performance tuning &#8211; computing facets concurrently by Geert</title>
		<link>http://www.xqueryhacker.com/2012/01/marklogic-xquery-performance-tuning-computing-facets-concurrently/#comment-4411</link>
		<dc:creator>Geert</dc:creator>
		<pubDate>Tue, 03 Jan 2012 19:22:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=285#comment-4411</guid>
		<description>Did you consider a [1 to $max] predicate behind cts:element-values? Works really really well when you have hundreds of facet values, while you are only interested in the top 10..

:-)</description>
		<content:encoded><![CDATA[<p>Did you consider a [1 to $max] predicate behind cts:element-values? Works really really well when you have hundreds of facet values, while you are only interested in the top 10..</p>
<p> <img src='http://www.xqueryhacker.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MarkLogic: Move documents to new forests by admin</title>
		<link>http://www.xqueryhacker.com/2009/11/marklogic-move-a-document-to-a-different-forest/#comment-2689</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 13 Aug 2011 13:28:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=140#comment-2689</guid>
		<description>Hi David,

I believe the difference is because the move forest function doesn&#039;t change a document&#039;s uri or explicitly delete it. Because the uri doesn&#039;t change the properties document is maintained (and under the covers MarkLogic moves it with the document to the new forest).

Rob</description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>I believe the difference is because the move forest function doesn&#8217;t change a document&#8217;s uri or explicitly delete it. Because the uri doesn&#8217;t change the properties document is maintained (and under the covers MarkLogic moves it with the document to the new forest).</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MarkLogic: Move documents to new forests by David Lee</title>
		<link>http://www.xqueryhacker.com/2009/11/marklogic-move-a-document-to-a-different-forest/#comment-2688</link>
		<dc:creator>David Lee</dc:creator>
		<pubDate>Sat, 13 Aug 2011 12:13:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=140#comment-2688</guid>
		<description>Curious how does this code preserve the properties associated with the document ?
In similar code that I have that renames a document I have had to explicitly get and then insert the properties document separately.

For example here&#039;s the code I pulled from an old mailing list entry to move a document.   It seems to imply that not all property objects are maintained in an insert.


declare function local:document-rename(
   $old-uri as xs:string, $new-uri as xs:string)
  as empty-sequence()
{
    xdmp:document-delete($old-uri)
    ,
    let $permissions := xdmp:document-get-permissions($old-uri)
    let $collections := xdmp:document-get-collections($old-uri)
    return xdmp:document-insert(
      $new-uri, doc($old-uri),
      if ($permissions) then $permissions
      else xdmp:default-permissions(),
      if ($collections) then $collections
      else xdmp:default-collections(),
      xdmp:document-get-quality($old-uri)
    )
    ,
    let $prop-ns := namespace-uri()
    let $properties :=
      xdmp:document-properties($old-uri)/node()
        [ namespace-uri(.) ne $prop-ns ]
    return xdmp:document-set-properties($new-uri, $properties) 
 };



-David</description>
		<content:encoded><![CDATA[<p>Curious how does this code preserve the properties associated with the document ?<br />
In similar code that I have that renames a document I have had to explicitly get and then insert the properties document separately.</p>
<p>For example here&#8217;s the code I pulled from an old mailing list entry to move a document.   It seems to imply that not all property objects are maintained in an insert.</p>
<p>declare function local:document-rename(<br />
   $old-uri as xs:string, $new-uri as xs:string)<br />
  as empty-sequence()<br />
{<br />
    xdmp:document-delete($old-uri)<br />
    ,<br />
    let $permissions := xdmp:document-get-permissions($old-uri)<br />
    let $collections := xdmp:document-get-collections($old-uri)<br />
    return xdmp:document-insert(<br />
      $new-uri, doc($old-uri),<br />
      if ($permissions) then $permissions<br />
      else xdmp:default-permissions(),<br />
      if ($collections) then $collections<br />
      else xdmp:default-collections(),<br />
      xdmp:document-get-quality($old-uri)<br />
    )<br />
    ,<br />
    let $prop-ns := namespace-uri()<br />
    let $properties :=<br />
      xdmp:document-properties($old-uri)/node()<br />
        [ namespace-uri(.) ne $prop-ns ]<br />
    return xdmp:document-set-properties($new-uri, $properties)<br />
 };</p>
<p>-David</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on XQuery support in Notepad++ XQuery 1.0 and MarkLogic 4.1 update by Hiep</title>
		<link>http://www.xqueryhacker.com/2009/09/xquery-support-in-notepad-xquery-10-and-marklogic-41-update/#comment-1545</link>
		<dc:creator>Hiep</dc:creator>
		<pubDate>Wed, 13 Apr 2011 14:43:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=97#comment-1545</guid>
		<description>it does not work in Notepad++ v5.7 Unicode! Please fix it. In this version of Notepad++, the file FunctionListRules.xml does not exist.</description>
		<content:encoded><![CDATA[<p>it does not work in Notepad++ v5.7 Unicode! Please fix it. In this version of Notepad++, the file FunctionListRules.xml does not exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MarkLogic searches &#8211; stemmed vs unstemmed by XDMP-LISTCACHEFULL error &#124; XQueryHacker</title>
		<link>http://www.xqueryhacker.com/2009/04/marklogic-searches-stemmed-vs-unstemmed/#comment-1343</link>
		<dc:creator>XDMP-LISTCACHEFULL error &#124; XQueryHacker</dc:creator>
		<pubDate>Tue, 29 Mar 2011 11:20:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=63#comment-1343</guid>
		<description>[...] query wasn&#8217;t an option because that would limit the search to content in one language (see this post for more details on this weird [...]</description>
		<content:encoded><![CDATA[<p>[...] query wasn&#8217;t an option because that would limit the search to content in one language (see this post for more details on this weird [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on DQ update by Early version of DQ &#8211; an alternative interface for Mark Logic&#8217;s CQ XQuery editor &#124; XQueryHacker</title>
		<link>http://www.xqueryhacker.com/2011/03/dq-update-marklogic-cq/#comment-1208</link>
		<dc:creator>Early version of DQ &#8211; an alternative interface for Mark Logic&#8217;s CQ XQuery editor &#124; XQueryHacker</dc:creator>
		<pubDate>Tue, 15 Mar 2011 21:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=256#comment-1208</guid>
		<description>[...] DQ update v0.2 now available [...]</description>
		<content:encoded><![CDATA[<p>[...] DQ update v0.2 now available [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Early version of DQ &#8211; an alternative interface for Mark Logic&#8217;s CQ XQuery editor by admin</title>
		<link>http://www.xqueryhacker.com/2010/01/early-version-of-dq-an-alternative-interface-for-mark-logics-cq-xquery-editor/#comment-1207</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 15 Mar 2011 21:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=214#comment-1207</guid>
		<description>Hi Colin,

Glad you find it useful! Tab renaming and explore are both now supported - download the latest version (0.2) from github :)

Thanks,
Rob</description>
		<content:encoded><![CDATA[<p>Hi Colin,</p>
<p>Glad you find it useful! Tab renaming and explore are both now supported &#8211; download the latest version (0.2) from github <img src='http://www.xqueryhacker.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Thanks,<br />
Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Early version of DQ &#8211; an alternative interface for Mark Logic&#8217;s CQ XQuery editor by Colin</title>
		<link>http://www.xqueryhacker.com/2010/01/early-version-of-dq-an-alternative-interface-for-mark-logics-cq-xquery-editor/#comment-1206</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 15 Mar 2011 21:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.xqueryhacker.com/?p=214#comment-1206</guid>
		<description>Just writing to say: Thanks!
A co-worker showed me this after I&#039;d been using cq for a few weeks. Very nice!
The only thing missing for me would be to name tabs (as others have commented).
CQ&#039;s explore is useful, but I like just using CQ for that, and DQ for queries.</description>
		<content:encoded><![CDATA[<p>Just writing to say: Thanks!<br />
A co-worker showed me this after I&#8217;d been using cq for a few weeks. Very nice!<br />
The only thing missing for me would be to name tabs (as others have commented).<br />
CQ&#8217;s explore is useful, but I like just using CQ for that, and DQ for queries.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

