All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.senseidb.search.client.req.Terms Maven / Gradle / Ivy

The newest version!
package com.senseidb.search.client.req;

import java.util.List;

import com.senseidb.search.client.json.JsonField;

/**
 * 

* A query that match on any (configurable) of the provided terms. This is a * simpler syntax query for using a bool query with several * term queries in the should clauses. For example: *

* * *

* The terms query is also aliased with in as the * query name for simpler usage. *

* * */ public class Terms extends Selection { List values; List excludes; Operator operator; Double boost; @JsonField("minimum_match") Integer minimumMatch; boolean _noOptimize = false; public Terms() { } public Terms(List values, List excludes, Operator op) { super(); this.values = values; this.excludes = excludes; this.operator = op; } public Terms(List values, List excludes, Operator op, int minimumMatch, double boost) { super(); this.values = values; this.excludes = excludes; this.operator = op; this.boost = boost; this.minimumMatch = minimumMatch; } public List getValues() { return values; } public List getExcludes() { return excludes; } public Operator getOperator() { return operator; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy