<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:45:14 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-3421] LINQ3: Translate string IndexOf and IndexOfAny in filters</title>
                <link>https://jira.mongodb.org/browse/CSHARP-3421</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;See tests in&#160;LegacyPredicateTranslatorTests for details of how they should be translated.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1619117">CSHARP-3421</key>
            <summary>LINQ3: Translate string IndexOf and IndexOfAny in filters</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13201">Fixed</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Feb 2021 06:02:42 +0000</created>
                <updated>Sat, 28 Oct 2023 11:47:58 +0000</updated>
                            <resolved>Mon, 4 Oct 2021 15:36:01 +0000</resolved>
                                                    <fixVersion>2.14.0</fixVersion>
                                    <component>LINQ3</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3692461" author="rstam" created="Tue, 30 Mar 2021 20:47:51 +0000"  >&lt;p&gt;Done but not reviewed&lt;/p&gt;</comment>
                            <comment id="3692070" author="rstam" created="Tue, 30 Mar 2021 18:08:27 +0000"  >&lt;p&gt;Reopened as we have decided to translate string expressions in filters to regular expressions the same as the existing LINQ implementation does.&lt;/p&gt;</comment>
                            <comment id="3692065" author="rstam" created="Tue, 30 Mar 2021 18:07:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=astanton1978%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;astanton1978@gmail.com&quot;&gt;astanton1978@gmail.com&lt;/a&gt;&#160;for the new LINQ implementation we are supporting the following values for the `comparisonType` parameter:&lt;/p&gt;

&lt;p&gt;`CurrentCulture`: essentially a no-op as this is the server default&lt;/p&gt;

&lt;p&gt;`CurrentCultureIgnoreCase`: results in the `i` flag being added to the regular expression&lt;/p&gt;

&lt;p&gt;We don&apos;t support any other values for the `comparisonType` parameter because there is no way to tell the server to use a different culture for just one string comparison. The closest thing the server has support for is to the set &quot;collation&quot; for the entire aggregation pipeline.&lt;/p&gt;</comment>
                            <comment id="3616271" author="rstam" created="Mon, 15 Feb 2021 18:17:28 +0000"  >&lt;p&gt;We&apos;re still trying to decide how to map C# `StringComparison` values to supported MongoDB server-side functionality.&lt;/p&gt;

&lt;p&gt;The server only lets you specify a collation for the entire operation, not for individual string comparisons.&lt;/p&gt;</comment>
                            <comment id="3615550" author="JIRAUSER1258703" created="Sun, 14 Feb 2021 21:56:33 +0000"  >&lt;p&gt;@Robert Stam - does this handle the `StringComparison` enum choices (at least for OrdinalIgnoreCase)? I tried to find a PR for this to answer for myself but I didn&apos;t see one.&#160; Another user created &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-3425&quot; title=&quot;x =&amp;gt; x.ToLower().Equals(&amp;quot;firstname&amp;quot;) throws NotSupportedException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-3425&quot;&gt;&lt;del&gt;CSHARP-3425&lt;/del&gt;&lt;/a&gt; and a PR to handle a `string.Equals` comparison but they were calling .`.ToLower()` first and that seemed unnecessary.&#160; The c# driver documentation and examples dont cover casing of data.&#160; Sorry if this isnt the right place to ask.&#160;&lt;/p&gt;</comment>
                            <comment id="3608479" author="rstam" created="Wed, 10 Feb 2021 06:05:05 +0000"  >&lt;p&gt;Done but not reviewed&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1614608">CSHARP-3404</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CSHARP-2608</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr48tj:</customfieldvalue>

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