[SERVER-13947] Text search should be able to support AND of search terms Created: 14/May/14  Updated: 28/Dec/23

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

Type: New Feature Priority: Major - P3
Reporter: Felipe Albrecht Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 2
Labels: qi-text-search
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Query Integration
Participants:

 Description   

From instance: "word cup brazil" is translated to "word" OR "cup" OR "brazil". How I do "word" AND "cup" AND "brazil" ?

I use the hyphen operator, how do thing about the plus ?
$search("+word +cup +brazil")



 Comments   
Comment by Felipe Albrecht [ 26/May/19 ]

I mean, each word in a double quote:

example query : 'If you put the "entire" phrase "between" double quotes, that's not "going" to find occurrences of the individual words.', it will force that the words "entire", "between", and "going" must be presented.

But it is a workaround and I wish one day they will implement the suggestion in this issue.

Comment by Dan Dascalescu [ 26/May/19 ]

If you put the entire phrase between double quotes, that's not going to find occurrences of the individual words.

If you put each word between double quotes, this post in the thread you started says "you won't be able to take advantage of the stemming functionality to see results that contain similar terms".

Comment by Felipe Albrecht [ 26/May/19 ]

Hello Dan,

I even had forgotten about this issue. In fact, what people are doing is indeed MongoDB + Elastic Search, that is a pitty and also annoying.

Currently, I 'emulate' an 'and' command in MongoDB putting the text that must appear in double quotes, but I do not know if it is an official feature.

Comment by Dan Dascalescu [ 26/May/19 ]

This is such an important feature, it was submitted 5+ years ago, yet it only had 1 upvote before I've added mine. What am I missing? Does everyone just give up on MongoDB FTS and use ElasticSearch?

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