[SERVER-9413] Text search seems to support solely alpha characters Created: 20/Apr/13 Updated: 10/Dec/14 Resolved: 20/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Text Search |
| Affects Version/s: | 2.4.2 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Ben Picolo | Assignee: | J Rassi |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | indexes, text | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu |
||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
I'm not certain if it's the case, but from my testing it seems that text search supports only alphabetical characters, and I'm unable to do exact searches on text that contains semicolons, forward slashes, etc. This may be intentional but it's caused some limitations for me. |
| Comments |
| Comment by J Rassi [ 20/Apr/13 ] |
|
Sure. Glad you've been putting the feature to good use. |
| Comment by Ben Picolo [ 20/Apr/13 ] |
|
The release candidate fixed the problem, thanks. |
| Comment by Ben Picolo [ 20/Apr/13 ] |
|
I'll try that out. Thank you. Great work on the text search so far by the way. It's been an huge ease to implement relative to other solutions, and has been very useful. |
| Comment by J Rassi [ 20/Apr/13 ] |
Nope, you've actually encountered a bug, first reported at |
| Comment by Ben Picolo [ 20/Apr/13 ] |
|
Well, in this case, I have some fields that look something like "1/Blue/Blue". So an example document might be. ( _id: 1, text: "This is searched perfectly when under a text index", text2: "This/is/not", test3: "this;also;is;not" } . The text index will give me results if I ask it for "This also is not", but I definitely don't appear to be able to perform an exact match on "This/is/not", (in fact searching db.collection.runCommand( "text", {search: "\"This/is/not\"" }) gives me no results whatsoever in this case). To be honest, I don't know if this is an unusual request or thing for a text index to do, but it's a limitation I met with for getting exact results. |
| Comment by J Rassi [ 20/Apr/13 ] |
|
Can you give an example document, and an example search you'd expect to match that document? |