public List<Tweet> messagesByField( final String fieldName, final String keyword, final int maxResult) { return impl.messagesByField(entityManagerFactory, fieldName, keyword, maxResult); }
/** * To search for all tweets, sorted in creation order (assuming the timestamp is correct). * * @return */ public List<Tweet> allTweetsSortedByTime(final int maxResult) { return impl.allTweetsSortedByTime(entityManagerFactory, maxResult); }
/** * This is the most complex one, and uses ScoredTerm to simplify return value. I guess this is the * most practical way to make a tag cloud out of all indexed terms. * * @param inField Will return only scoredTerms in the specified field * @param minimumFrequency a minimum threshold, can be used to reduce not very significant words * (see analyzers and stopwords for better results). * @throws IOException */ public Set<ScoredTerm> mostFrequentlyUsedTerms( String inField, int minimumFrequency, final int maxResult) throws IOException { return impl.mostFrequentlyUsedTerms(entityManagerFactory, inField, minimumFrequency, maxResult); }