Thanks Matt, Unless they've been updated lately, the docs are not clear as to how to handle contractions, so thanks for the -don't example.
Given that "don't" is regarded as a "word", we believe that search should _not_ return "don't" in a search for "don"... It's a bug in our opinion. Further, I'm not sure whether this is a problem only with contractions (that is the handling of single-quote characters), or if search reacts in weird/inconsistent/buggy ways when other special characters (e.g. single quotes, utf-8 stuff, etc) are used. Can you check whether there is consistent handling and spec for these from the search team? Thanks, Jeffrey http://www.tweettronics.com On Jun 7, 10:50 am, themattharris <thematthar...@twitter.com> wrote: > Hi Jeffrey, > > Thanks for bumping this to our attention. Some of the threads fall off > our radar so a prompt is always welcome. > > Search treats separate words as an AND search meaning a search for: > Don SomeLastName > will translate to: > Don AND SomeLastName. > > For a complete phrase search you would instead want to search for: > "Don SomeLastName". > > The problem you are experiencing with "Don" matching "Don't" is, as > you suggested, managed by appending "-don't" to the query. You don't > need to escape the apostrophe and the quotes are not necessary, making > your search query: > Don SomeLastName -don't > > You can read more about the supported advanced search operators on the > search site . > > Hope that helps, > > Matt Harris > Developer Advocate, Twitterhttp://twitter.com/themattharris > > 1.http://search.twitter.com/operators > > On Jun 7, 9:09 am, Jeffrey Greenberg <jeffreygreenb...@gmail.com> > wrote: > > > > > Hello Twitter, > > Anyone home? > > j > > > On Jun 2, 11:28 pm, Jeffrey Greenberg <jeffreygreenb...@gmail.com> > > wrote: > > > > We have a user that is causing us to create a search of the form: > > > Don SomeLastName > > > which is returning tweets containing "don't" and SomeLastName. > > > > Thats a no good! > > > > Is there a decent workaround for this by modifying the search? e.g. > > > Don SomeLastName -don't > > > but how do you escape the single quote? Like this? > > > Don SomeLastName -"don't"