[SERVER-9214] Phrase search won't match phrases that aren't space-delimited Created: 02/Apr/13 Updated: 11/Jul/16 Resolved: 03/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Text Search |
| Affects Version/s: | 2.4.1 |
| Fix Version/s: | 2.4.3, 2.5.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | J Rassi |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
The query parser generates the phrase list from the token stream, separating tokens with spaces. The phrase matcher performs a byte-by-byte comparison to determine a match (post-lowercasing). Thus, the only documents that will be returned in a phrase match are documents in which the phrase tokens are space-delimited. See, for example:
All of the above searches yield queryDebugString "bar|foo||||foo bar||" |
| Comments |
| Comment by auto [ 18/Apr/13 ] |
|
Author: {u'date': u'2013-04-03T04:32:15Z', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |
| Comment by auto [ 18/Apr/13 ] |
|
Author: {u'date': u'2013-04-03T12:48:39Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 18/Apr/13 ] |
|
Author: {u'date': u'2013-04-03T04:33:24Z', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |
| Comment by Ian Whalen (Inactive) [ 17/Apr/13 ] |
|
this has not yet been backported - it is still under consideration for backporting to 2.4.3 |
| Comment by Tyler Brock [ 17/Apr/13 ] |
|
Did this get backported to 2.4.2? |
| Comment by auto [ 03/Apr/13 ] |
|
Author: {u'date': u'2013-04-03T12:48:39Z', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |
| Comment by auto [ 03/Apr/13 ] |
|
Author: {u'date': u'2013-04-03T04:33:24Z', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |
| Comment by auto [ 03/Apr/13 ] |
|
Author: {u'date': u'2013-04-03T04:32:15Z', u'name': u'Jason Rassi', u'email': u'rassi@10gen.com'}Message: |