[SERVER-12089] Error message unclear for $text query on collection with no text index Created: 13/Dec/13  Updated: 11/Jul/16  Resolved: 19/Feb/14

Status: Closed
Project: Core Server
Component/s: Querying, Text Search
Affects Version/s: 2.5.4
Fix Version/s: 2.6.0-rc0

Type: Improvement Priority: Major - P3
Reporter: J Rassi Assignee: J Rassi
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-9063 Integrate text search into normal que... Closed
related to SERVER-10026 New query system Closed
Participants:

 Description   

When running a $text query on a non-empty collection with no text index, users receive the generic "no query solutions" error message. This could use improvement.

error: {
"$err" : "Unable to execute query. Reason: No query solutions. Query: ns=test.messages limit=0 skip=0\nTree: TEXT : query=foul, language = , tag=NULL\nSort: {}\nProj: {}\n",
"code" : 17007
}



 Comments   
Comment by Githook User [ 19/Feb/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-12089 Query planner: test exactly one text index for TEXT
Branch: master
https://github.com/mongodb/mongo/commit/9a9baaaf78677b939b8267d6e9266ec88c345b6b

Comment by Githook User [ 18/Feb/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: Revert "SERVER-12089 Query planner: test exactly one text index for TEXT"

This reverts commit 263bc242b025553c54a5d1d926386b5ecebfc807.
Branch: master
https://github.com/mongodb/mongo/commit/11a2ffdc03e4e3ed53fee893335c66cbff7681fc

Comment by Githook User [ 18/Feb/14 ]

Author:

{u'username': u'jrassi', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}

Message: SERVER-12089 Query planner: test exactly one text index for TEXT
Branch: master
https://github.com/mongodb/mongo/commit/263bc242b025553c54a5d1d926386b5ecebfc807

Generated at Thu Feb 08 03:27:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.