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

java.lang.Object
  extended by org.hibernate.search.query.dsl.v2.impl.ConnectedAllContext
All Implemented Interfaces:
AllContext, QueryCustomization<AllContext>, Termination<AllContext>

public class ConnectedAllContext
extends java.lang.Object
implements AllContext

Author:
Emmanuel Bernard

Constructor Summary
ConnectedAllContext()
           
 
Method Summary
 AllContext boostedTo(float boost)
          Boost the query 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)
 AllContext constantScore()
          All results matching the query have a constant score equals to the boost FIXME is that true?
 org.apache.lucene.search.Query createQuery()
          Return the lucene query representing the operation
 AllContext except(org.apache.lucene.search.Query... queriesMatchingExcludedDocuments)
          Exclude the documents matching these queries
 AllContext filter(org.apache.lucene.search.Filter filter)
          Filter the query results with the Filter instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectedAllContext

public ConnectedAllContext()
Method Detail

createQuery

public org.apache.lucene.search.Query createQuery()
Description copied from interface: Termination
Return the lucene query representing the operation

Specified by:
createQuery in interface Termination<AllContext>

except

public AllContext except(org.apache.lucene.search.Query... queriesMatchingExcludedDocuments)
Description copied from interface: AllContext
Exclude the documents matching these queries

Specified by:
except in interface AllContext

boostedTo

public AllContext boostedTo(float boost)
Description copied from interface: QueryCustomization
Boost the query 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 QueryCustomization<AllContext>

constantScore

public AllContext constantScore()
Description copied from interface: QueryCustomization
All results matching the query have a constant score equals to the boost FIXME is that true?

Specified by:
constantScore in interface QueryCustomization<AllContext>

filter

public AllContext filter(org.apache.lucene.search.Filter filter)
Description copied from interface: QueryCustomization
Filter the query results with the Filter instance

Specified by:
filter in interface QueryCustomization<AllContext>


Copyright © 2006-2010 Hibernate. All Rights Reserved.