Module io.ebean.api

Class TextSimple


  • public class TextSimple
    extends Object
    Simple text query options.

    This maps to an ElasticSearch "simple text query".

    
    
      TextSimple options = new TextSimple()
           .analyzeWildcard(true)
           .fields("name")
           .lenient(true)
           .opAnd();
    
       List<Customer> customers = database.find(Customer.class)
           .text()
           .textSimple("quick brown", options)
           .findList();
    
     
    • Field Detail

      • fields

        protected String[] fields
      • operatorAnd

        protected boolean operatorAnd
      • analyzer

        protected String analyzer
      • flags

        protected String flags
      • lowercaseExpandedTerms

        protected boolean lowercaseExpandedTerms
      • analyzeWildcard

        protected boolean analyzeWildcard
      • locale

        protected String locale
      • lenient

        protected boolean lenient
      • minShouldMatch

        protected String minShouldMatch
    • Constructor Detail

      • TextSimple

        public TextSimple()
        Construct
    • Method Detail

      • opAnd

        public TextSimple opAnd()
        Use AND as the default operator.
      • opOr

        public TextSimple opOr()
        Use OR as the default operator.
      • lowercaseExpandedTerms

        public TextSimple lowercaseExpandedTerms​(boolean lowercaseExpandedTerms)
        Set the false to not use lowercase expanded terms.
      • analyzeWildcard

        public TextSimple analyzeWildcard​(boolean analyzeWildcard)
        Set to true to use analyze wildcard.
      • lenient

        public TextSimple lenient​(boolean lenient)
        Set the lenient mode.
      • minShouldMatch

        public TextSimple minShouldMatch​(String minShouldMatch)
        Set the minimum should match.
      • isLenient

        public boolean isLenient()
        Return lenient mode.
      • isAnalyzeWildcard

        public boolean isAnalyzeWildcard()
        Return true to analyse wildcard.
      • isLowercaseExpandedTerms

        public boolean isLowercaseExpandedTerms()
        Return lowercase expanded terms mode.
      • isOperatorAnd

        public boolean isOperatorAnd()
        Return true if the default operator should be AND.
      • getAnalyzer

        public String getAnalyzer()
        Return the analyzer to use.
      • getFields

        public String[] getFields()
        Return the fields.
      • getLocale

        public String getLocale()
        Return the locale.
      • getFlags

        public String getFlags()
        Return the flags.
      • getMinShouldMatch

        public String getMinShouldMatch()
        Return the minimum should match.