[SERVER-10238] add ability to get total match count to text queries Created: 17/Jul/13  Updated: 06/Dec/22  Resolved: 02/Feb/16

Status: Closed
Project: Core Server
Component/s: Text Search
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor - P4
Reporter: Ryan Nitz Assignee: Backlog - Query Team (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-9063 Integrate text search into normal que... Closed
Assigned Teams:
Query
Participants:

 Description   

Currently, there is not a way to get the total number of document matches when issuing the "text" search command.

For a variety of use cases, it would be incredibly useful to get total match count for a search term.

You may want to be able to define a minimum score to be included in the count.



 Comments   
Comment by J Rassi [ 02/Feb/16 ]

Closing as a dup of SERVER-9063.

The $text operator allows users to count the number of documents that match a particular text search predicate (for example, db.collection.find({$text: "hello world"}).count()).

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