com.senseidb.search.client.json.req
Class Term
java.lang.Object
com.senseidb.search.client.json.req.Selection
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 classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter |
Filter.AndOr |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Term
public Term(String value)
Term
public Term(String value,
double boost)
Term
public Term()
Copyright © 2010-2012. All Rights Reserved.