org.cdlib.xtf.textEngine
Class MoreLikeThisQuery.MoreLikeWrapper

Object
  extended by Query
      extended by MoreLikeThisQuery.MoreLikeWrapper
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
MoreLikeThisQuery

public class MoreLikeThisQuery.MoreLikeWrapper
extends Query

Exclude the target document from the set. Also, provide a more comprehensive score explanation.

See Also:
Serialized Form

Field Summary
(package private)  String innerDescrip
           
(package private)  Query innerQuery
           
(package private)  String outerDescrip
           
(package private)  MoreLikeThisQuery outerQuery
           
 
Constructor Summary
MoreLikeThisQuery.MoreLikeWrapper(MoreLikeThisQuery outerQuery, Query innerQuery)
           
 
Method Summary
 Weight createWeight(Searcher searcher)
          Returns a Weight that applies the filter to the enclosed query's Weight.
 boolean equals(Object o)
          Returns true iff o is equal to this.
 Query getQuery()
           
 int hashCode()
          Returns a hash code value for this object.
 String toString(String s)
          Prints a user-readable version of this query.
 
Methods inherited from class Query
clone, combine, extractTerms, getBoost, getSimilarity, mergeBooleanQueries, rewrite, setBoost, toString, weight
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

outerQuery

MoreLikeThisQuery outerQuery

outerDescrip

String outerDescrip

innerQuery

Query innerQuery

innerDescrip

String innerDescrip
Constructor Detail

MoreLikeThisQuery.MoreLikeWrapper

public MoreLikeThisQuery.MoreLikeWrapper(MoreLikeThisQuery outerQuery,
                                         Query innerQuery)
Method Detail

createWeight

public Weight createWeight(Searcher searcher)
Returns a Weight that applies the filter to the enclosed query's Weight. This is accomplished by overriding the Scorer returned by the Weight.

Overrides:
createWeight in class Query

getQuery

public Query getQuery()

toString

public String toString(String s)
Prints a user-readable version of this query.

Specified by:
toString in class Query

equals

public boolean equals(Object o)
Returns true iff o is equal to this.

Overrides:
equals in class Object

hashCode

public int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class Object