[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:
Duplicate
duplicates SERVER-9214 Phrase search won't match phrases tha... Closed
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 ]

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.

Nope, you've actually encountered a bug, first reported at SERVER-9214, for which a fix has been committed and backported to 2.4. The fix will be in 2.4.3, which hasn't been released yet, but it's in 2.4.3-rc0, which has already gone out. Could you see if you can reproduce your issue in 2.4.3-rc0? It's available for download at <http://www.mongodb.org/downloads>.

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?

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