com.senseidb.search.client.json.req
Class Term

java.lang.Object
  extended by com.senseidb.search.client.json.req.Selection
      extended by com.senseidb.search.client.json.req.Term
All Implemented Interfaces:
Filter, Query

public class Term
extends Selection
implements Query

Matches documents that have fields that contain a term (not analyzed). The term query maps to Sensei TermQuery. The following matches documents where the user field contains the term kimchy:

{
   
"term" : { "user" : "kimchy" }
}    

A boost can also be associated with the query:

{
   
"term" : { "user" : { "value" : "kimchy", "boost" : 2.0 } }
}    

Or :

{
   
"term" : { "user" : { "term" : "kimchy", "boost" : 2.0 } }
}    


Nested Class Summary
 
Nested classes/interfaces inherited from class com.senseidb.search.client.json.req.Selection
Selection.Custom, Selection.Path, Selection.Range
 
Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter
Filter.AndOr
 
Constructor Summary
Term()
           
Term(String value)
           
Term(String value, double boost)
           
 
Method Summary
 
Methods inherited from class com.senseidb.search.client.json.req.Selection
custom, getField, path, range, range, setField, terms, terms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Term

public Term(String value)

Term

public Term(String value,
            double boost)

Term

public Term()


Copyright © 2010-2012. All Rights Reserved.