Class TextCommonTerms


  • public class TextCommonTerms
    extends Object
    Text common terms query.

    This maps to an ElasticSearch "common terms query".

    
    
      TextCommonTerms options = new TextCommonTerms()
        .cutoffFrequency(0.001)
        .minShouldMatch("50%")
        .lowFreqOperatorAnd(true)
        .highFreqOperatorAnd(true);
    
      List<Customer> customers = database.find(Customer.class)
        .text()
        .textCommonTerms("the brown", options)
        .findList();
    
     
    
    
       // ElasticSearch expression
    
       "common": {
         "body": {
           "query": "the brown",
           "cutoff_frequency": 0.001,
           "low_freq_operator": "and",
           "high_freq_operator": "and",
           "minimum_should_match": "50%"
         }
       }