<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:12 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-563] Add indexing to BsonValue</title>
                <link>https://jira.mongodb.org/browse/CSHARP-563</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Define indexing at the BsonValue level so that indexing is available automatically without having to downcast the BsonValue to a BsonDocument or BsonArray. If indexing is invoked on a BsonValue that is not a document or array an InvalidOperationException will be thrown.&lt;/p&gt;

&lt;p&gt;This allows code to be written much more concisely. For example:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var streetAddress = document.AsBsonDocument[&quot;Addresses&quot;].AsBsonArray[0].AsBsonDocument[0].AsString;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;can now be written simply as:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;var streetAddress = document[&quot;Addresses&quot;][0][0].AsString;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;NOTE: this new feature is not really compatible with the proposal in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-558&quot; title=&quot;Replace AsXyz and ToXyz in BsonValue with GetXyz in BsonDocument&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-558&quot;&gt;&lt;del&gt;CSHARP-558&lt;/del&gt;&lt;/a&gt;, but might be preferable to &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-558&quot; title=&quot;Replace AsXyz and ToXyz in BsonValue with GetXyz in BsonDocument&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-558&quot;&gt;&lt;del&gt;CSHARP-558&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="49966">CSHARP-563</key>
            <summary>Add indexing to BsonValue</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Sun, 9 Sep 2012 01:14:11 +0000</created>
                <updated>Thu, 20 Mar 2014 14:35:11 +0000</updated>
                            <resolved>Sat, 1 Dec 2012 17:11:26 +0000</resolved>
                                    <version>1.6</version>
                                    <fixVersion>1.8</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="204083" author="auto" created="Sat, 1 Dec 2012 17:11:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-09T03:58:38Z&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-563&quot; title=&quot;Add indexing to BsonValue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-563&quot;&gt;&lt;del&gt;CSHARP-563&lt;/del&gt;&lt;/a&gt;: modified the rest of the driver to take advantage of the new autoindex feature of BsonValue.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/1ce03da93d1f8dc22c89c84867e2d9c536be7ab9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/1ce03da93d1f8dc22c89c84867e2d9c536be7ab9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="204082" author="auto" created="Sat, 1 Dec 2012 17:11:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-09T03:48:29Z&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-563&quot; title=&quot;Add indexing to BsonValue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-563&quot;&gt;&lt;del&gt;CSHARP-563&lt;/del&gt;&lt;/a&gt;: throw NotSupportedException instead of InvalidOperationException and provide better error message when indexer is used on a BsonValue that doesn&apos;t support it.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/083beb871489f49b948ce1fe919aa8b413fad547&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/083beb871489f49b948ce1fe919aa8b413fad547&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="204081" author="auto" created="Sat, 1 Dec 2012 17:11:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-09T01:15:48Z&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-563&quot; title=&quot;Add indexing to BsonValue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-563&quot;&gt;&lt;del&gt;CSHARP-563&lt;/del&gt;&lt;/a&gt;: add autoindexing to BsonValue so you no longer have to downcast to BsonDocument or BsonArray to index.&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	MongoDB.Bson/ObjectModel/BsonDocument.cs&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/85ad35957dc7d49254fa2fbaaf78cd14e1085eac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/85ad35957dc7d49254fa2fbaaf78cd14e1085eac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="202441" author="rstam" created="Thu, 29 Nov 2012 19:13:13 +0000"  >&lt;p&gt;Reopened to backport feature to 1.8.&lt;/p&gt;</comment>
                            <comment id="162672" author="rstam" created="Mon, 10 Sep 2012 21:44:47 +0000"  >&lt;p&gt;Pushed to x2.0.&lt;/p&gt;</comment>
                            <comment id="162663" author="auto" created="Mon, 10 Sep 2012 21:36:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-08T20:58:38-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-563&quot; title=&quot;Add indexing to BsonValue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-563&quot;&gt;&lt;del&gt;CSHARP-563&lt;/del&gt;&lt;/a&gt;: modified the rest of the driver to take advantage of the new autoindex feature of BsonValue.&lt;br/&gt;
Branch: x2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/88c9c13a0108ef513feea7144e2d22279ff03deb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/88c9c13a0108ef513feea7144e2d22279ff03deb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="162662" author="auto" created="Mon, 10 Sep 2012 21:36:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-08T20:48:29-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-563&quot; title=&quot;Add indexing to BsonValue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-563&quot;&gt;&lt;del&gt;CSHARP-563&lt;/del&gt;&lt;/a&gt;: throw NotSupportedException instead of InvalidOperationException and provide better error message when indexer is used on a BsonValue that doesn&apos;t support it.&lt;br/&gt;
Branch: x2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/22945d265b4a3b878853251eb89214f6f437ec4d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/22945d265b4a3b878853251eb89214f6f437ec4d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="162661" author="auto" created="Mon, 10 Sep 2012 21:36:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-08T18:15:48-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-563&quot; title=&quot;Add indexing to BsonValue&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-563&quot;&gt;&lt;del&gt;CSHARP-563&lt;/del&gt;&lt;/a&gt;: add autoindexing to BsonValue so you no longer have to downcast to BsonDocument or BsonArray to index.&lt;br/&gt;
Branch: x2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/114ba5d6d30f720128a2530bb0d0c09aa847453d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/114ba5d6d30f720128a2530bb0d0c09aa847453d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="162033" author="rstam" created="Sun, 9 Sep 2012 06:36:57 +0000"  >&lt;p&gt;In code review again.&lt;/p&gt;</comment>
                            <comment id="162020" author="rstam" created="Sun, 9 Sep 2012 03:54:48 +0000"  >&lt;p&gt;The exception thrown when indexing is used on a BsonValue that doesn&apos;t support it should be a NotSupportedException, not an InvalidOperationException.&lt;/p&gt;</comment>
                            <comment id="162013" author="rstam" created="Sun, 9 Sep 2012 01:19:01 +0000"  >&lt;p&gt;In code review.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="49922">CSHARP-558</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="49935">CSHARP-560</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrh4tj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13579</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>