dazzcreations / otterapi

Automatically exported from code.google.com/p/otterapi
0 stars 0 forks source link

All results are not returned when using order #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. request 
http://otter.topsy.com/search.json?perpage=100&order=date&q=riot&page=1&offset=0
&mintime=1312516800&maxtime=1312776000

2. 
http://otter.topsy.com/search.json?perpage=100&order=date&q=riot&page=2&offset=1
00&mintime=1312516800&maxtime=1312776000

The result says there are over 1700 posts, but page 2 returns nothing.

What is the expected output? What do you see instead?
I would expect the result to continue up until the limit of 10 pages.

This query works correctly without the "order=date"

Original issue reported on code.google.com by djmjr5...@gmail.com on 22 Sep 2011 at 5:34

GoogleCodeExporter commented 8 years ago
Hi, 
   The issue you are seeing with the results when order=date is due to the fact that search.json with order=date works similar to /searchdate. Thus if you want more than 100 results you would have to manipulate the zoom level. Please see /searchdate documentation for details of zoom : http://code.google.com/p/otterapi/wiki/Resources?tm=6#/searchdate

/searchdate
Description: Returns search results sorted by reverse chronology. All options 
are the same as that of /search.

This method performs regular search as /search, picks top N results based on 
relevance, then sort them by the timesstamp of the first citation. In other 
words, it is a timeline of high quality results. The quality level is 
controlled by parameter "zoom", the default value 10 will pick up to 100 
results.

Original comment by amokt...@gmail.com on 22 Sep 2011 at 6:33

GoogleCodeExporter commented 8 years ago
That being the case, can you provide a definition of how the zoom corresponds 
with the number of results in general?  In other words, for zoom=10, I get 100 
results.  What do I get with zoom=3 or with zoom=30?  Is there a way to have 
the zoom scope to all of the tweets for a given query?  

Original comment by chsbell...@gmail.com on 5 Dec 2011 at 3:35

GoogleCodeExporter commented 8 years ago
chsbellboy,

Your guess is correct. Currently, the number of results returned is zoom * 10

order=date was not designed as a mechanism for dumping "all of tweets for a 
give query". For that purpose, you should manipulate "mintime" and "maxtime" to 
narrow down the window if you want to dump more results for wide queries. 

Original comment by ted...@gmail.com on 5 Dec 2011 at 7:48