How to search personFrom & personTo in new library

Mar 28, 2013 at 5:07 PM
How are we searching how a status is to and a from now with the new API?

Here is what we use to do:
 var twitterCtx = new TwitterContext(auth);

            var queryResults =
                (from s in twitterCtx.Search
                 where s.Type == SearchType.Search &&
                       s.PersonFrom == frm &&
                       s.PersonTo == to
                 select s);
The PersonFrom & PersonTo is no longer available.

Thanks
Coordinator
Mar 28, 2013 at 5:26 PM
Hi,

When Twitter moved to API v1.1, the operators weren't officially documented and people were reporting problems. So the only safe thing for me to do was to remove the advanced operators. It isn't wise for me to try to support (or imply support of) undocumented and changing features.

The way forward is to add operators to the Query parameter. You can visit the Twitter Search page and click on the Operators link to see how to add them.

@JoeMayo
Mar 28, 2013 at 7:41 PM
Edited Mar 28, 2013 at 7:41 PM
Thank you Joe,

This works.
     var queryRes =
                        (from s in context.Search
                         where s.Type == SearchType.Search && s.Query == "from:" + frm + " to:" + to
                          select s);
Mar 28, 2013 at 8:04 PM
Thank you Joe,

This works.
     var queryRes =
                                (from s in context.Search
                                                        where s.Type == SearchType.Search && s.Query == "from:" + frm + " to:" + to
                                                          select s);