criteria.setProjection(Projections.rowCount());
if (searchHitby.equals(TypeSearchResult.TWEETPOLL)) {
criteria.createAlias("tweetPoll", "tweetPoll");
criteria.add(Restrictions.eq("tweetPoll.tweetPollId", id));
} else if (searchHitby.equals(TypeSearchResult.POLL)) {
criteria.createAlias("poll", "poll");
criteria.add(Restrictions.eq("poll.pollId", id));
} else if (searchHitby.equals(TypeSearchResult.SURVEY)) {
criteria.createAlias("survey", "survey");
criteria.add(Restrictions.eq("survey.sid", id));
} else if (searchHitby.equals(TypeSearchResult.HASHTAG)) {