com.senseidb.search.client.json.req.query
Class QueryPrefix
java.lang.Object
com.senseidb.search.client.json.req.query.FieldAware
com.senseidb.search.client.json.req.query.QueryPrefix
- All Implemented Interfaces:
- Filter, Query
public class QueryPrefix
- extends FieldAware
- implements Query
Matches documents that have fields containing terms with a specified prefix
(not analyzed). The prefix query maps to Sensei
PrefixQuery. The following matches documents where the user
field contains a term that starts with ki:
{
"prefix" : { "user" : "ki" }
}
A boost can also be associated with the query:
Or :
This multi term query allows to control how it gets rewritten using the rewrite parameter.
| 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 |
QueryPrefix
public QueryPrefix(String field,
String value,
double boost)
Copyright © 2010-2012. All Rights Reserved.