Class MoreLikeThisHandler.MoreLikeThisHelper

  • Enclosing class:
    MoreLikeThisHandler

    public static class MoreLikeThisHandler.MoreLikeThisHelper
    extends Object
    Helper class for MoreLikeThis that can be called from other request handlers
    • Method Detail

      • getRawMLTQuery

        public org.apache.lucene.search.Query getRawMLTQuery()
      • getBoostedMLTQuery

        public org.apache.lucene.search.BooleanQuery getBoostedMLTQuery()
      • getRealMLTQuery

        public org.apache.lucene.search.Query getRealMLTQuery()
      • getInterestingTerms

        public List<MoreLikeThisHandler.InterestingTerm> getInterestingTerms​(org.apache.lucene.search.BooleanQuery boostedMLTQuery,
                                                                             int maxTerms)
        Yields terms with boosts from the boosted MLT query.
        Parameters:
        maxTerms - how many terms to return, a negative value means all terms are returned
      • getMoreLikeThis

        public org.apache.lucene.queries.mlt.MoreLikeThis getMoreLikeThis()