Module io.ebean.api

Class MultiMatch


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

    • fields

      protected final String[] fields
    • type

      protected MultiMatch.Type type
    • tieBreaker

      protected double tieBreaker
  • Constructor Details

    • MultiMatch

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

    • fields

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

      public MultiMatch type(MultiMatch.Type type)
      Set the type of query.
    • 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.
    • getType

      public MultiMatch.Type getType()
      Return the type.
    • getFields

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

      public double getTieBreaker()
      Return the tie breaker.