<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tech Notes &#187; MongoDB</title>
	<atom:link href="http://www.ryannitz.org/tech-notes/tag/mongodb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryannitz.org/tech-notes</link>
	<description>Miscellaneous technology examples and notes</description>
	<lastBuildDate>Mon, 10 Aug 2009 18:29:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
  <link>http://www.ryannitz.org/tech-notes</link>
  <url>http://ryan-nitz/favicon.ico</url>
  <title>Tech Notes</title>
</image>
		<item>
		<title>MongoDB Wildcard Query</title>
		<link>http://www.ryannitz.org/tech-notes/2009/08/10/mongodb-wildcard-query/</link>
		<comments>http://www.ryannitz.org/tech-notes/2009/08/10/mongodb-wildcard-query/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 18:29:58 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://ryan-nitz.com/tech-notes/?p=211</guid>
		<description><![CDATA[MongoDB uses regex in certain parts of their query syntax. The following is an example of how to perform a wildcard query: db.collectionName.find( { fieldName : /.*cnn.*/ } ); This example searches the collection for all documents with a field that contains, &#8220;%cnn%&#8221;. Of course in your query you need to replace &#8220;collectionName&#8221; with the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-189" title="icon" src="http://ryan-nitz.com/tech-notes/wp-content/uploads/2009/07/icon.png" alt="icon" width="42" height="42" /></p>
<p><a href="http://www.mongodb.org/" target="_blank">MongoDB</a> uses <a href="http://en.wikipedia.org/wiki/Regular_expression" target="_blank">regex</a> in certain parts of their query syntax. The following is an example of how to perform a wildcard query:</p>
<pre>db.collectionName.find( { fieldName : /.*cnn.*/ } );</pre>
<p>This example searches the collection for all documents with a field that contains, &#8220;%cnn%&#8221;. Of course in your query you need to replace &#8220;collectionName&#8221; with the name of your collection and &#8220;fieldName&#8221; with the field you are interested in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannitz.org/tech-notes/2009/08/10/mongodb-wildcard-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MongoDB &#8211; Find Documents Missing Fields</title>
		<link>http://www.ryannitz.org/tech-notes/2009/07/29/monogodb-document-missing-field/</link>
		<comments>http://www.ryannitz.org/tech-notes/2009/07/29/monogodb-document-missing-field/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 17:59:10 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[MongoDB]]></category>

		<guid isPermaLink="false">http://ryan-nitz.com/tech-notes/?p=188</guid>
		<description><![CDATA[In MongoDB it is possible that some documents will not contain fields other documents have. The following code shows how to find these documents using the mongo shell. db.collectionName.find("function() { return this.fieldName == null }") db.collectionName.find("function() { return this.fieldName == null }").count() The second example shows how to only get the count. In this example. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-189" title="icon" src="http://ryan-nitz.com/tech-notes/wp-content/uploads/2009/07/icon.png" alt="icon" width="42" height="42" /></p>
<p>In <a href="http://www.mongodb.org/" target="_blank">MongoDB</a> it is possible that some documents will not contain fields other documents have. The following code shows how to find these documents using the mongo shell.</p>
<pre>db.collectionName.find("function() { return this.fieldName == null }")
db.collectionName.find("function() { return this.fieldName == null }").count()</pre>
<p>The second example shows how to only get the count. </p>
<p>In this example. you would replace &#8220;collectionName&#8221; with the name of the collection you are interested in querying. Additionally, you would change &#8220;fieldName&#8221; to the name of the field that interests you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannitz.org/tech-notes/2009/07/29/monogodb-document-missing-field/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
