[SERVER-13353] Text search is not working if the search string contains "all" word Created: 26/Mar/14  Updated: 10/Dec/14  Resolved: 26/Mar/14

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

Type: Bug Priority: Major - P3
Reporter: Ranjit Patra Assignee: Unassigned
Resolution: Done Votes: 0
Labels: commands
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-10062 Add user configurable stop word lists... Backlog
Operating System: Windows
Participants:

 Description   

I am using mongodb 2.4.8.

> db.thread_data.runCommand("text", {search : "all"});

{
"queryDebugString" : "||||||",
"language" : "english",
"results" : [ ],
"stats" :

{ "nscanned" : 0, "nscannedObjects" : 0, "n" : 0, "nfound" : 0, "timeMicros" : 64 }

,
"ok" : 1
}

-> thread_data is a collection, which is text indexed.
-> {search : "all"} here we are searching all the documents of thread_data where "all" word is present
-> In thread_data collection "all" word is present in the document but it is not present in the results.
-> From the documentation the search word will be in the "queryDebugString" of the output. but it is not happening.



 Comments   
Comment by Ranjit Patra [ 27/Mar/14 ]

Thanks Dan.

Comment by Daniel Pasette (Inactive) [ 26/Mar/14 ]

the search term "all" is on the english stop words list and is thus neither indexed or used in searches. See:
https://github.com/mongodb/mongo/blob/v2.4/src/mongo/db/fts/stop_words_english.txt

There is currently no way to customize the stop list, see SERVER-10062.

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