@SuppressWarnings("unchecked")
public List advancedSearch(final Boolean isPublished,
final Boolean isComplete, final Boolean favourites,
final Boolean scheduled, final Account user, final Integer start,
final Integer max, final Integer period, final String keyword) {
final SearchPeriods searchPeriods = SearchPeriods
.getPeriodString(period.toString());
final DetachedCriteria criteria = DetachedCriteria
.forClass(TweetPoll.class);
criteria.createAlias("question", "question");
criteria.add(Restrictions.like("question.question", keyword,