com.senseidb.search.client.json.req.query.span
Class SpanTerm
java.lang.Object
com.senseidb.search.client.json.req.query.FieldAware
com.senseidb.search.client.json.req.query.span.SpanTerm
- All Implemented Interfaces:
- Filter, Query
public class SpanTerm
- extends FieldAware
- implements Query
Matches spans containing a term. The span term query maps to Sensei
SpanTermQuery. Here is an example:
{
"span_term" : { "user" : "kimchy" }
}
A boost can also be associated with the query:
Or :
| Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter |
Filter.AndOr |
| Fields inherited from class com.senseidb.search.client.json.req.query.FieldAware |
field |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpanTerm
public SpanTerm(String field,
String value,
Double boost)
getValue
public String getValue()
setValue
public void setValue(String value)
getBoost
public Double getBoost()
setBoost
public void setBoost(Double boost)
cleanBoosts
public static void cleanBoosts(List<SpanTerm> spanTerms)
Copyright © 2010-2012. All Rights Reserved.