org.hibernate.search.query.dsl.v2.impl
Class ConnectedTermMatchingContext

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

public class ConnectedTermMatchingContext
extends java.lang.Object
implements TermMatchingContext

Author:
Emmanuel Bernard

Constructor Summary
ConnectedTermMatchingContext(QueryContext queryContext, java.lang.String[] fields, org.hibernate.search.query.dsl.v2.impl.QueryCustomizer queryCustomizer, org.apache.lucene.analysis.Analyzer queryAnalyzer, SearchFactory factory)
           
ConnectedTermMatchingContext(QueryContext queryContext, java.lang.String field, org.hibernate.search.query.dsl.v2.impl.QueryCustomizer queryCustomizer, org.apache.lucene.analysis.Analyzer queryAnalyzer, SearchFactory factory)
           
 
Method Summary
 TermMatchingContext andField(java.lang.String field)
          field / property the term query is executed on
 TermMatchingContext 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)
 TermMatchingContext ignoreAnalyzer()
          Advanced Do not execute the analyzer on the text.
 TermTermination matching(java.lang.String text)
          text searched in the term query (the term is pre-analyzer unless ignoreAnalyzer is called)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectedTermMatchingContext

public ConnectedTermMatchingContext(QueryContext queryContext,
                                    java.lang.String field,
                                    org.hibernate.search.query.dsl.v2.impl.QueryCustomizer queryCustomizer,
                                    org.apache.lucene.analysis.Analyzer queryAnalyzer,
                                    SearchFactory factory)

ConnectedTermMatchingContext

public ConnectedTermMatchingContext(QueryContext queryContext,
                                    java.lang.String[] fields,
                                    org.hibernate.search.query.dsl.v2.impl.QueryCustomizer queryCustomizer,
                                    org.apache.lucene.analysis.Analyzer queryAnalyzer,
                                    SearchFactory factory)
Method Detail

matching

public TermTermination matching(java.lang.String text)
Description copied from interface: TermMatchingContext
text searched in the term query (the term is pre-analyzer unless ignoreAnalyzer is called)

Specified by:
matching in interface TermMatchingContext

andField

public TermMatchingContext andField(java.lang.String field)
Description copied from interface: TermMatchingContext
field / property the term query is executed on

Specified by:
andField in interface TermMatchingContext

boostedTo

public TermMatchingContext 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<TermMatchingContext>

ignoreAnalyzer

public TermMatchingContext 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<TermMatchingContext>


Copyright © 2006-2010 Hibernate. All Rights Reserved.