Re: [twitter-dev] Are search results ordered by creation date?

2010-07-12 Thread Harshad RJ
Thanks Jonathan. Solved my problem!

On Tue, Jul 13, 2010 at 12:55 AM, Jonathan Reichhold <
jonathan.reichh...@gmail.com> wrote:

> result_type=mixed will give you a combination of popular and recent
> tweets.  Currently the 0-3 popular tweets are first followed by the recent
> tweets.  I.e. look at the in the results set
>
> "metadata": {"result_type": "recent"},
>
> What you are seeing is the mixing of the result types.  If you only want
> recent then use result_type=recent
>
>
> https://search.twitter.com/search.json?q=%22Roman%20Polanski%22&result_type=recent&show_user=true&rpp=100
>
> Jonathan
>
> --
Harshad RJ
http://hrj.wikidot.com


Re: [twitter-dev] Are search results ordered by creation date?

2010-07-12 Thread Jonathan Reichhold
result_type=mixed will give you a combination of popular and recent tweets.
Currently the 0-3 popular tweets are first followed by the recent tweets.
I.e. look at the in the results set

"metadata": {"result_type": "recent"},

What you are seeing is the mixing of the result types.  If you only want
recent then use result_type=recent

https://search.twitter.com/search.json?q=%22Roman%20Polanski%22&result_type=recent&show_user=true&rpp=100

Jonathan


On Mon, Jul 12, 2010 at 12:07 PM, Harshad RJ  wrote:

> Hi,
>
> I just noticed that some search queries have results that seem to be in
> order, while others have results that seem to be either unordered or
> reversed.
>
> Based on a few sample queries, it looks like popular queries (such as for
> trending topics) have results in ascending order of creation date. While
> less popular ones are either unordered or descending order.
>
> Is there any order guaranteed by the search API?
>
> Two example queries each with a different order of results:
>
> https://search.twitter.com/search.json?q=%22Roman%20Polanski%22&show_user=true&result_type=mixed&rpp=100
>
>
> https://search.twitter.com/search.json?q=holy&show_user=true&result_type=mixed&rpp=100
>
> thanks,
> --
> Harshad RJ
> http://hrj.wikidot.com
>