<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:42 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>[CXX-267] Include regex elements in BSONArrayBuilder</title>
                <link>https://jira.mongodb.org/browse/CXX-267</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The BSONArrayBuilder class in the MongoDB C++ driver API (&lt;a href=&quot;http://api.mongodb.org/cplusplus/current/classmongo_1_1_b_s_o_n_array_builder.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://api.mongodb.org/cplusplus/current/classmongo_1_1_b_s_o_n_array_builder.html&lt;/a&gt;) allows to build BSON arrays, eg.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;BSONArrayBuilder ba;&lt;br/&gt;
ba.append(&quot;foo&quot;);&lt;br/&gt;
ba.append(&quot;bar&quot;);&lt;br/&gt;
...&lt;br/&gt;
connection-&amp;gt;query(&quot;col&quot;, BSON(&quot;x&quot; &amp;lt;&amp;lt; BSON(&quot;$in&quot; &amp;lt;&amp;lt; ba.arr())));&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;will do a query equal to the following at mongo shell:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;db.col.find({&quot;x&quot;: {&quot;$in&quot;: [ &quot;foo&quot;, &quot;bar&quot; ] }})&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;However, It seems that BSONArrayBuilder lacks a method to build a query based on regex instead of strings, in the following way (that works at mongo shell):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt; db.col.find({&quot;x&quot;: {&quot;$in&quot;: [ /^foo/, /^bar/ ] }})&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This issue is about implementing the above functionality (or maybe I&apos;m wrong... &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Note that Note that BSONObjBuilder class (&lt;a href=&quot;http://api.mongodb.org/cplusplus/current/classmongo_1_1_b_s_o_n_obj_builder.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://api.mongodb.org/cplusplus/current/classmongo_1_1_b_s_o_n_obj_builder.html&lt;/a&gt;) has an appendRegex() method... I wonder why a similar method has not been included in the BSONArrayBuilder class.&lt;/p&gt;</description>
                <environment></environment>
        <key id="144821">CXX-267</key>
            <summary>Include regex elements in BSONArrayBuilder</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="tyler@10gen.com">Tyler Brock</assignee>
                                    <reporter username="fgalan@gmail.com">Ferm&#237;n Gal&#225;n M&#225;rquez</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Tue, 1 Jul 2014 14:38:53 +0000</created>
                <updated>Thu, 14 Aug 2014 19:30:14 +0000</updated>
                            <resolved>Tue, 8 Jul 2014 20:52:59 +0000</resolved>
                                                    <fixVersion>legacy-1.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="640608" author="acm" created="Tue, 1 Jul 2014 15:04:21 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fgalan%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;fgalan@gmail.com&quot;&gt;fgalan@gmail.com&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;I&apos;m guessing this is just an oversight. You should feel free to send us a pull request with a fix, or we will try to get to it in the next release cycle for the legacy driver.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="145842">CXX-278</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hs058v:</customfieldvalue>

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