How Do I Use the SearchMetaData NextResults Property?

May 1, 2013 at 11:26 PM
Edited May 1, 2013 at 11:29 PM
After performing a query I can inspect the SearchMetaData.NextResults property to see if there is another page of results to view, and there is I tried storing that value and then assigning it to a search query like:
mySearch =
    (from search in ctxt.Search
        where search.Type == SearchType.Search &&
            search.Query == MyStoredNextResultsValue
            && search.IncludeEntities == true
            && search.Count == count
        select search)
    .SingleOrDefault();
I can see why it wouldn't work since the value is really just the entire queryString that would be passed in.

So my question is, how am I supposed to use this? Is there an alternate way to construct a query from this property? I'm sure there is and I'm just not seeing it...

Thanks.
Coordinator
May 2, 2013 at 12:09 AM
I wrote a blog post on Working with Timelines with LINQ to Twitter. Essentially, you use SinceID and MaxID to keep track of the tweets you've seen so you can constrain your query to only new tweets.

@JoeMayo
May 2, 2013 at 12:14 AM
Thank you Joe. You are so responsive to these questions it has made working with this library a pleasant experience.

For anyone else who arrives here, I believe this is what I should be reading:
http://geekswithblogs.net/WinAZ/archive/2012/09/02/working-with-timelines-with-linq-to-twitter.aspx
Coordinator
May 2, 2013 at 12:15 AM
Right, I forgot the link. :)