<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:21:25 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>[DRIVERS-394] UTF substring case-insensetive match in aggregation pipeline</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-394</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;Hello Sirs!&lt;br/&gt;
I&apos;m new to MongoDB and I&apos;ve just started to learn it, and possibly that my problem has already some solution. Here is my situation:&lt;br/&gt;
I&apos;m working on search engine that accepts from user UTF-8 keywords and then searches for the matches in MongoDB collection, returning documents that match. For matching part I could use regex, but the problem is that besides search keywords, user also provides logical expressions in order to narrow the search. So I need to use aggregation pipeline. But the aggregation doesn&apos;t provide (as well as I know) means to match against case-insensitive utf-8 substring. For example:&lt;br/&gt;
Search keyword is: &quot;j&#245;hvi&quot;&lt;br/&gt;
Collection contains such array cells:&lt;br/&gt;
&quot;address&quot;: &quot;Rahu 26, J&#245;hvi&quot;, &quot;comment&quot;: &quot;J&#213;HVI is a nice city&quot;.&lt;br/&gt;
So how could be matched keyword J&#245;hvi against &quot;comment&quot; field, containing same word but in different case in $project of aggregation pipeline? I can use $indexOF in combination with $toLower, but $toLower doesn&apos;t handle UTF-8 letters &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;. Please help!&lt;/p&gt;</description>
                <environment>php on Windows</environment>
        <key id="404324">DRIVERS-394</key>
            <summary>UTF substring case-insensetive match in aggregation pipeline</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="andruss2001">Andrei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 Jul 2017 06:48:41 +0000</created>
                <updated>Sat, 15 Jul 2017 19:12:24 +0000</updated>
                            <resolved>Sat, 15 Jul 2017 19:12:24 +0000</resolved>
                                                                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1622901" author="rathi.gnanasekaran" created="Sat, 15 Jul 2017 19:11:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=andruss2001&quot; class=&quot;user-hover&quot; rel=&quot;andruss2001&quot;&gt;andruss2001&lt;/a&gt; This is not a driver related question. Please email the mongodb users group for swift response : mongodb-user@googlegroups.com&lt;/p&gt;</comment>
                    </comments>
                    <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|ht2uf3:</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>