com.senseidb.search.client.json.req
Class Selection.Range

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

public static class Selection.Range
extends Selection
implements Query

Matches documents with fields that have terms within a certain range. The type of the Sensei query depends on the field type, for string fields, the TermRangeQuery, while for number/date fields, the query is a NumericRangeQuery. The following example returns all documents where age is between 10 and 20:

The range query top level parameters include:


Name Description
from The lower bound. Defaults to start from the first.
to The upper bound. Defaults to unbounded.
include_lower Should the first from (if set) be inclusive or not. Defaults to true
include_upper Should the last to (if set) be inclusive or not. Defaults to true.
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
Selection.Range()
           
Selection.Range(String from, String to, boolean includeLower, boolean includeUpper)
           
Selection.Range(String from, String to, boolean includeLower, boolean includeUpper, double Doost, boolean noOptimize)
           
Selection.Range(String from, String to, boolean includeLower, boolean includeUpper, Double boost, boolean noOptimize, String type)
           
 
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

Selection.Range

public Selection.Range()

Selection.Range

public Selection.Range(String from,
                       String to,
                       boolean includeLower,
                       boolean includeUpper)

Selection.Range

public Selection.Range(String from,
                       String to,
                       boolean includeLower,
                       boolean includeUpper,
                       double Doost,
                       boolean noOptimize)

Selection.Range

public Selection.Range(String from,
                       String to,
                       boolean includeLower,
                       boolean includeUpper,
                       Double boost,
                       boolean noOptimize,
                       String type)


Copyright © 2010-2012. All Rights Reserved.