<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:15 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>[SERVER-9063] Integrate text search into normal query system</title>
                <link>https://jira.mongodb.org/browse/SERVER-9063</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&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;   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;db.coll.find({$text: {$search: &quot;\&quot;a phrase\&quot; term1 term2 -negterm&quot;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;                      $language: &quot;spanish&quot;},&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;              name: /a.*/},&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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;   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;             {description: 1, _id: 0})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;       .sort({date: 1}).skip(10).limit(10);&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;original:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;I have been using text search against a large database of needs feeds with some success.  The problem is that only being able to get the results based on score is not sufficient.  What I mainly need to do, and I think a lot of others will want to do, is qualify a document based on it meeting the text search criteria (as one possible filter, to be combined with others), but to return a result set ordered by some other criteria (like date), with the same kind of paging support that we have with queries in general.&lt;/p&gt;

&lt;p&gt;So I guess specifically, this just means having a query filter to indicate whether a document does or doesn&apos;t match a given text search string.&lt;/p&gt;

&lt;p&gt;In my case, I have millions of news feed items from hundreds of feeds.  If I want to search Slashdot for the term &quot;iPhone&quot;, what I want is to see the news items from that feed that contain &quot;iPhone&quot; in order of most recent first.  With text search as it is now, I cannot do that.&lt;/p&gt;

&lt;p&gt;Users don&apos;t want text search &lt;b&gt;only&lt;/b&gt; because they want weighted results that find the most relevant documents, the also want to be able to use text search criteria as additional functionality in their current applications and queries.&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="69315">SERVER-9063</key>
            <summary>Integrate text search into normal query system</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="rassi">J Rassi</assignee>
                                    <reporter username="rdickinson">Robert Dickinson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Mar 2013 20:06:00 +0000</created>
                <updated>Tue, 2 Feb 2016 16:52:19 +0000</updated>
                            <resolved>Tue, 17 Dec 2013 21:52:38 +0000</resolved>
                                    <version>2.4.0</version>
                                    <fixVersion>2.5.5</fixVersion>
                                    <component>Text Search</component>
                                        <votes>23</votes>
                                    <watches>33</watches>
                                                                                                                <comments>
                            <comment id="472658" author="xgen-internal-githook" created="Wed, 18 Dec 2013 19:04:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10026&quot; title=&quot;New query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10026&quot;&gt;&lt;del&gt;SERVER-10026&lt;/del&gt;&lt;/a&gt; Remove out-of-date $meta sort test&lt;/p&gt;

&lt;p&gt;Sort on textScore without projection no longer supported.  Negative&lt;br/&gt;
test to be added as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12038&quot; title=&quot;Forbid $meta sort on field that does not have $meta project&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12038&quot;&gt;&lt;del&gt;SERVER-12038&lt;/del&gt;&lt;/a&gt;, when validation&lt;br/&gt;
functionality is complete.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/140ccec2dc0933afc6f680457304f156df9db560&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/140ccec2dc0933afc6f680457304f156df9db560&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="472154" author="xgen-internal-githook" created="Tue, 17 Dec 2013 21:47:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Correctly sort on text metadata for sharded queries&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b44edc42e42524d2f8bf66d389eeb6d973fbf40e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b44edc42e42524d2f8bf66d389eeb6d973fbf40e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="470646" author="xgen-internal-githook" created="Fri, 13 Dec 2013 19:33:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10026&quot; title=&quot;New query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10026&quot;&gt;&lt;del&gt;SERVER-10026&lt;/del&gt;&lt;/a&gt; Rename document metadata &quot;text&quot; to &quot;textScore&quot;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1d034bab093f4f7d3b264c50e78207b94a0e267e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1d034bab093f4f7d3b264c50e78207b94a0e267e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="464265" author="xgen-internal-githook" created="Mon, 2 Dec 2013 20:44:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11924&quot; title=&quot;fts_score_sort.js failing via slow_nightly_tests/sharding_passthrough.js on rhel 5.7&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11924&quot;&gt;&lt;del&gt;SERVER-11924&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10026&quot; title=&quot;New query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10026&quot;&gt;&lt;del&gt;SERVER-10026&lt;/del&gt;&lt;/a&gt; No shard-passthru for fts test&lt;/p&gt;

&lt;p&gt;Pending mongos support, disabling fts_score_sort.js in sharded&lt;br/&gt;
passthrough.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/02db387c70f8e4e828c5297ae9fa06e667421c37&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/02db387c70f8e4e828c5297ae9fa06e667421c37&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="463971" author="xgen-internal-githook" created="Mon, 2 Dec 2013 15:54:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;hkhalsa&apos;, u&apos;name&apos;: u&apos;Hari Khalsa&apos;, u&apos;email&apos;: u&apos;hkhalsa@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10026&quot; title=&quot;New query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10026&quot;&gt;&lt;del&gt;SERVER-10026&lt;/del&gt;&lt;/a&gt; can sort on doc metadata, remove implicit text sort&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b3ffbcfb747ef3e6efa2b75dc409592087b207ce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b3ffbcfb747ef3e6efa2b75dc409592087b207ce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="441050" author="auto" created="Tue, 15 Oct 2013 18:29:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Better error message in TextMatchExpression::matchesSingleElement()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2a1753c33971126e48705d0364a99977e30f5559&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2a1753c33971126e48705d0364a99977e30f5559&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440787" author="hari.khalsa@10gen.com" created="Tue, 15 Oct 2013 13:27:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alerner&quot; class=&quot;user-hover&quot; rel=&quot;alerner&quot;&gt;alerner&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gianfranco&quot; class=&quot;user-hover&quot; rel=&quot;gianfranco&quot;&gt;gianfranco&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rassi%4010gen.com&quot; class=&quot;user-hover&quot; rel=&quot;rassi@10gen.com&quot;&gt;rassi@10gen.com&lt;/a&gt; Not for 2.5.3 but we should do it for 2.5.4.&lt;/p&gt;</comment>
                            <comment id="440778" author="gianfranco" created="Tue, 15 Oct 2013 13:08:41 +0000"  >&lt;p&gt;Will $text support explain()?&lt;/p&gt;</comment>
                            <comment id="440080" author="rassi@10gen.com" created="Sat, 12 Oct 2013 07:23:49 +0000"  >&lt;p&gt;Above commits implement $text with a blocking stage.  Like $near, having a $text predicate currently implies a sort order and a limit of 100, both of which can be overridden.  Plans can only be generated for queries with a $text predicate if a text index exists.  Attempting a $text query with the old query framework will generate the cryptic error message &quot;assertion src/mongo/db/matcher/expression_text.cpp:45&quot; to send back to the user. Including a $text predicate disallows collection scans and forces the planner to use the text index.&lt;/p&gt;</comment>
                            <comment id="440069" author="auto" created="Sat, 12 Oct 2013 05:10:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Don&apos;t generate text plans if &amp;gt;1 text index&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e9542d111dcd02f93113ad448ca15a1c9b95f1e7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e9542d111dcd02f93113ad448ca15a1c9b95f1e7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440068" author="auto" created="Sat, 12 Oct 2013 05:10:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Fix TextStage to correctly handle returning no results&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b1b968db74a834692e48fbd613d9d9fa01dd4029&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b1b968db74a834692e48fbd613d9d9fa01dd4029&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440067" author="auto" created="Sat, 12 Oct 2013 05:10:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Fix uninitialized member in StageDebugCmd::parseQuery&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7a677b1d6a5f4ac115d69957a18671f77d889dbb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7a677b1d6a5f4ac115d69957a18671f77d889dbb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440046" author="auto" created="Sat, 12 Oct 2013 02:26:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Correct type of return value in buildStages error case&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/535665987c26169e5bdb942371365b03f328e348&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/535665987c26169e5bdb942371365b03f328e348&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440035" author="auto" created="Sat, 12 Oct 2013 00:35:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Add new query operator $text&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/34b88976c91fdeec5ff0b8816d35deef72f3767e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/34b88976c91fdeec5ff0b8816d35deef72f3767e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440034" author="auto" created="Sat, 12 Oct 2013 00:35:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Add new plan stage TextStage&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a1d5f24d910d1407b8c166d99f0df99640845a2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a1d5f24d910d1407b8c166d99f0df99640845a2e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="440033" author="auto" created="Sat, 12 Oct 2013 00:35:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9063&quot; title=&quot;Integrate text search into normal query system&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9063&quot;&gt;&lt;del&gt;SERVER-9063&lt;/del&gt;&lt;/a&gt; Add new match expression TextMatchExpression&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/08fde2e6a23a98d8ca1ef9593891f4de027d2474&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/08fde2e6a23a98d8ca1ef9593891f4de027d2474&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="344494" author="tyler@10gen.com" created="Fri, 24 May 2013 11:39:48 +0000"  >&lt;p&gt;It would be great if we could have the text search filter not necessarily produce a score for a given document and simply match for doing operations like counting/grouping matches. Perhaps the server would be smart enough to do that if the score field was turned off in a projection or not implicitly included.&lt;/p&gt;</comment>
                            <comment id="344328" author="antoine" created="Fri, 24 May 2013 04:21:16 +0000"  >&lt;p&gt;Yes this is a big limitation right now.&lt;br/&gt;
Ideally you could do compound with text index, for example &lt;/p&gt;
{ txt: &quot;text&quot;, date: 1 }
&lt;p&gt; or &lt;/p&gt;
{ txt: &quot;text&quot;, popularity: 1 }
&lt;p&gt;Then you can just search and iterate document efficiently on that field.&lt;/p&gt;</comment>
                            <comment id="311357" author="surender.katikaneni@monsanto.com" created="Thu, 11 Apr 2013 18:42:30 +0000"  >&lt;p&gt;The api would be readable if its something like this:&lt;/p&gt;

&lt;p&gt;db.collections.search(filter:{},text:&quot;search string&quot;)&lt;/p&gt;

&lt;p&gt;db.collections.search(filter:{},text:&quot;search string&quot;).skip&amp;#40;n&amp;#41;.limit&amp;#40;n&amp;#41;&lt;/p&gt;</comment>
                            <comment id="311232" author="sambomartin" created="Thu, 11 Apr 2013 15:54:28 +0000"  >&lt;p&gt;The text search functionality has meant I no longer need to duplicate information into a string array and multi-key index, and whilst slower in a few use cases, overall the text search is much, much faster especially where the terms searched for do not exactly match the indexed values. &lt;/p&gt;

&lt;p&gt;The downside is that to do a simple text search pre-filtering the documents can only be done on a single equals condition which for me means changing the schema and denormalising a flag to indicate which documents are subject to the search.&lt;/p&gt;

&lt;p&gt;My requirement would be to search documents matching a particular type, &lt;br/&gt;
e.g. &lt;/p&gt;

&lt;p&gt;{ filter : { doctype : &lt;/p&gt;
{ $in : [ObjectId(&quot;...&quot;),ObjectId(&quot;...&quot;)] }
&lt;p&gt; } }, &lt;/p&gt;
{ search : &quot;my search term&quot; }
&lt;p&gt; ...&lt;/p&gt;

&lt;p&gt;If the text command could return a cursor to enable clients to skip/take results that would make it more useful also.&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="101819">DOCS-2380</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="177251">DRIVERS-199</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="97646">JAVA-1043</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="82634">SERVER-10240</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="72243">SERVER-9392</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="82622">SERVER-10238</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="67567">SERVER-8882</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="104984">SERVER-12277</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="98268">SERVER-11675</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="63827">SERVER-8419</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="76385">SERVER-9772</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="102155">SERVER-12089</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="102983">SERVER-12148</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>20.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 11 Apr 2013 15:54:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 9 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>rassi</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 9 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>antoine</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>gianfranco</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>hari.khalsa@10gen.com</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>rdickinson</customfieldvalue>
            <customfieldvalue>sambomartin</customfieldvalue>
            <customfieldvalue>surender.katikaneni@monsanto.com</customfieldvalue>
            <customfieldvalue>tyler@10gen.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn0jr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrlg93:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>39010</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hszyy7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>