[DOCS-11632] Text Search not working properly Created: 17/Apr/18 Updated: 17/Apr/18 Resolved: 17/Apr/18 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rahul Raj | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Participants: | |||||||||||||
| Days since reply: | 5 years, 43 weeks, 1 day ago | ||||||||||||
| Description |
|
https://docs.mongodb.com/manual/text-search/
It should return all documents containing "coffee shop" OR "cakes". So it should return both documents. But it isnt happening. Contradicting to the definition given on the docs, it return only one doc from the data set:
Here is the full data set:
Text index was already created for the field "content". Results are contradicting the definition (under Exact Phrase) text search docs: |
| Comments |
| Comment by Kelsey Schubert [ 17/Apr/18 ] |
|
Thanks for identifying this issue, rahulraj. As you correctly note, there is an inconsistency in the documentation between these two pages. We're tracking this fix to the documentation in https://docs.mongodb.com/manual/reference/operator/query/text/#phrases correctly describes the current implementation of this feature. Kind regards, |
| Comment by Rahul Raj [ 17/Apr/18 ] |
|
One more thing to point out that I found another docs reference where it say it will do an AND : https://docs.mongodb.com/manual/reference/operator/query/text/#phrases |