[DOCS-1627] Text search "search for text" tutorial unclear on phrase query semantics Created: 14/Jun/13 Updated: 30/Oct/23 Resolved: 09/Sep/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | manual |
| Affects Version/s: | None |
| Fix Version/s: | Server_Docs_20231030 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ara T. Howard | Assignee: | Kay Kim (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 21 weeks, 1 day ago |
| Description |
|
The "Match Phrases" section in tutorial/search-for-text.txt could use clarification, specifically to indicate that the compound OR query includes individual terms from phrases (i.e. to clarify that "foo bar \"baz\"" is not a search for ((foo OR bar) AND ("baz")). Original description below (see linked mailing list discussion in comments): — according to the docs at http://docs.mongodb.org/manual/single/index.html#document-tutorial/enable-text-search searching for
should perform something like
but it does not. for example, my corpus has ONE document with the word 'dog' in it
however, if i expand the search by including another term, and keep the phrase, we can see that a logical OR occurs - not and AND
notice the result was returned not because
but because
using ONLY phrases has the expected results
BUG in the docs? or in the code? |
| Comments |
| Comment by auto [ 24/Sep/13 ] |
|
Author: {u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}Message: |
| Comment by J Rassi [ 20/Jun/13 ] |
|
Updated title/description, moved to DOCS. |
| Comment by Ara T. Howard [ 15/Jun/13 ] |
|
see more discussion here -> https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/2hUgOAN4KKk |
| Comment by Ara T. Howard [ 14/Jun/13 ] |
|
let me know if you need more info. sorry about the shell/js formatting... does this system support code/syntax highlighting? |
| Comment by Ara T. Howard [ 14/Jun/13 ] |
|
ref: https://groups.google.com/forum/?fromgroups#!topic/mongodb-user/2hUgOAN4KKk |