Module io.ebean.api

Class MultiMatch


  • public class MultiMatch
    extends AbstractMatch
    Options for the text match expression.
    • Field Detail

      • fields

        protected final String[] fields
      • tieBreaker

        protected double tieBreaker
    • Constructor Detail

      • MultiMatch

        public MultiMatch​(String... fields)
        Construct with a set of fields.
    • Method Detail

      • fields

        public static MultiMatch fields​(String... fields)
        Create with the given fields.
      • tieBreaker

        public MultiMatch tieBreaker​(double tieBreaker)
        Set the tieBreaker to use.
      • opAnd

        public MultiMatch opAnd()
        Use the AND operator (rather than OR).
      • opOr

        public MultiMatch opOr()
        Use the OR operator (rather than AND).
      • minShouldMatch

        public MultiMatch minShouldMatch​(String minShouldMatch)
        Set the minimum should match value.
      • boost

        public MultiMatch boost​(double boost)
        Set the boost.
      • zeroTerms

        public MultiMatch zeroTerms​(String zeroTerms)
        Set the zero terms.
      • cutoffFrequency

        public MultiMatch cutoffFrequency​(double cutoffFrequency)
        Set the cutoff frequency.
      • maxExpansions

        public MultiMatch maxExpansions​(int maxExpansions)
        Set the max expansions (for phrase prefix only).
      • analyzer

        public MultiMatch analyzer​(String analyzer)
        Set the Analyzer to use for this expression.
      • rewrite

        public MultiMatch rewrite​(String rewrite)
        Set the rewrite to use.
      • getFields

        public String[] getFields()
        Return the fields to search.
      • getTieBreaker

        public double getTieBreaker()
        Return the tie breaker.