001package io.ebean.search;
002
003/**
004 * Options for the text match and multi match expressions.
005 */
006public abstract class AbstractMatch {
007
008  protected boolean operatorAnd;
009
010  protected String analyzer;
011
012  protected double boost;
013
014  protected String minShouldMatch;
015
016  protected int maxExpansions;
017
018  protected String zeroTerms;
019
020  protected double cutoffFrequency;
021
022  protected String fuzziness;
023
024  protected int prefixLength;
025
026  protected String rewrite;
027
028  /**
029   * Return true if using the AND operator otherwise using the OR operator.
030   */
031  public boolean isOperatorAnd() {
032    return operatorAnd;
033  }
034
035  /**
036   * Return the boost.
037   */
038  public double getBoost() {
039    return boost;
040  }
041
042  /**
043   * Return the minimum should match.
044   */
045  public String getMinShouldMatch() {
046    return minShouldMatch;
047  }
048
049  /**
050   * Return the zero terms option.
051   */
052  public String getZeroTerms() {
053    return zeroTerms;
054  }
055
056  /**
057   * Return the cutoff frequency.
058   */
059  public double getCutoffFrequency() {
060    return cutoffFrequency;
061  }
062
063  /**
064   * Return the max expansions.
065   */
066  public int getMaxExpansions() {
067    return maxExpansions;
068  }
069
070  /**
071   * Return the analyzer.
072   */
073  public String getAnalyzer() {
074    return analyzer;
075  }
076
077  /**
078   * Return the fuzziness.
079   */
080  public String getFuzziness() {
081    return fuzziness;
082  }
083
084  /**
085   * Return the prefix length.
086   */
087  public int getPrefixLength() {
088    return prefixLength;
089  }
090
091  /**
092   * Return the rewrite option.
093   */
094  public String getRewrite() {
095    return rewrite;
096  }
097
098}