com.senseidb.search.client.json.req.query.span
Class SpanTerm

java.lang.Object
  extended by com.senseidb.search.client.json.req.query.FieldAware
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter
Filter.AndOr
 
Field Summary
 
Fields inherited from class com.senseidb.search.client.json.req.query.FieldAware
field
 
Constructor Summary
SpanTerm(String field, String value, Double boost)
           
 
Method Summary
static void cleanBoosts(List<SpanTerm> spanTerms)
           
 Double getBoost()
           
 String getValue()
           
 void setBoost(Double boost)
           
 void setValue(String value)
           
 
Methods inherited from class com.senseidb.search.client.json.req.query.FieldAware
getField, setField
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpanTerm

public SpanTerm(String field,
                String value,
                Double boost)
Method Detail

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.