com.senseidb.search.client.json.req.query
Class QueryPrefix

java.lang.Object
  extended by com.senseidb.search.client.json.req.query.FieldAware
      extended by 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 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
QueryPrefix(String field, String value, double boost)
           
 
Method Summary
 
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

QueryPrefix

public QueryPrefix(String field,
                   String value,
                   double boost)


Copyright © 2010-2012. All Rights Reserved.