com.senseidb.search.client.json.req.filter
Class Ids

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

public class Ids
extends Object
implements Filter, Query

Filters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.

{
   
"ids" : {
       
"type" : "my_type"
       
"values" : ["1", "4", "100"]
   
}
}    

The type is optional and can be omitted, and can also accept an array of values.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.senseidb.search.client.json.req.filter.Filter
Filter.AndOr
 
Constructor Summary
Ids(List<String> values, List<String> excludes)
           
Ids(List<String> values, List<String> excludes, double boost)
           
 
Method Summary
 List<String> getExcludes()
           
 List<String> getValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ids

public Ids(List<String> values,
           List<String> excludes)

Ids

public Ids(List<String> values,
           List<String> excludes,
           double boost)
Method Detail

getValues

public List<String> getValues()

getExcludes

public List<String> getExcludes()


Copyright © 2010-2012. All Rights Reserved.