currentSearch = popSearch();
if (currentSearch != null) {
logger.warning("-- Searching for " + currentSearch.getHashtag());
Twitter twitter = TwitterFactory.getSingleton();
Query query = new Query(currentSearch.getHashtag());
query.setCount(100);
//max o since?
//that is
//older than or newer than?
if (currentSearch.isFirstScan())
query.setMaxId(currentSearch.getMaxID());
else
query.setSinceId(currentSearch.getSinceID());
QueryResult result;
try {
result = twitter.search(query);
int size = result.getTweets().size();
logger.warning("-- Going to iterate on "+ size + " tweets");