org.hibernate.search.query.dsl.impl
Class ConnectedRangeMatchingContext

java.lang.Object
  extended by org.hibernate.search.query.dsl.impl.ConnectedRangeMatchingContext
All Implemented Interfaces:
FieldCustomization<RangeMatchingContext>, RangeMatchingContext

public class ConnectedRangeMatchingContext
extends Object
implements RangeMatchingContext

Author:
Emmanuel Bernard

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hibernate.search.query.dsl.RangeMatchingContext
RangeMatchingContext.FromRangeContext<T>
 
Constructor Summary
ConnectedRangeMatchingContext(String fieldName, org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer, QueryBuildingContext queryContext)
           
 
Method Summary
 RangeTerminationExcludable above(Object above)
          The field value must be above above You can exclude the value above by calling .excludeLimit()
 RangeMatchingContext andField(String field)
          field / property the term query is executed on
 RangeTerminationExcludable below(Object below)
          The field value must be below below You can exclude the value below by calling .excludeLimit()
 RangeMatchingContext boostedTo(float boost)
          Boost the field to a given value Most of the time positive float: - lower than 1 to diminish the weight - higher than 1 to increase the weight Could be negative but not unless you understand what is going on (advanced)
<T> RangeMatchingContext.FromRangeContext<T>
from(T from)
           
 RangeMatchingContext ignoreAnalyzer()
          Advanced Do not execute the analyzer on the text.
 RangeMatchingContext ignoreFieldBridge()
          Do not try and find the field bridge nor apply the object / string conversion matching objects should be of type String in this case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectedRangeMatchingContext

public ConnectedRangeMatchingContext(String fieldName,
                                     org.hibernate.search.query.dsl.impl.QueryCustomizer queryCustomizer,
                                     QueryBuildingContext queryContext)
Method Detail

andField

public RangeMatchingContext andField(String field)
Description copied from interface: RangeMatchingContext
field / property the term query is executed on

Specified by:
andField in interface RangeMatchingContext

from

public <T> RangeMatchingContext.FromRangeContext<T> from(T from)
Specified by:
from in interface RangeMatchingContext

below

public RangeTerminationExcludable below(Object below)
Description copied from interface: RangeMatchingContext
The field value must be below below You can exclude the value below by calling .excludeLimit()

Specified by:
below in interface RangeMatchingContext

above

public RangeTerminationExcludable above(Object above)
Description copied from interface: RangeMatchingContext
The field value must be above above You can exclude the value above by calling .excludeLimit()

Specified by:
above in interface RangeMatchingContext

boostedTo

public RangeMatchingContext boostedTo(float boost)
Description copied from interface: FieldCustomization
Boost the field to a given value Most of the time positive float: - lower than 1 to diminish the weight - higher than 1 to increase the weight Could be negative but not unless you understand what is going on (advanced)

Specified by:
boostedTo in interface FieldCustomization<RangeMatchingContext>

ignoreAnalyzer

public RangeMatchingContext ignoreAnalyzer()
Description copied from interface: FieldCustomization
Advanced Do not execute the analyzer on the text. (It is usually a good idea to apply the analyzer)

Specified by:
ignoreAnalyzer in interface FieldCustomization<RangeMatchingContext>

ignoreFieldBridge

public RangeMatchingContext ignoreFieldBridge()
Description copied from interface: FieldCustomization
Do not try and find the field bridge nor apply the object / string conversion matching objects should be of type String in this case.

Specified by:
ignoreFieldBridge in interface FieldCustomization<RangeMatchingContext>


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved