public interface Term
Modifier and Type | Method and Description |
---|---|
SolrDocumentList |
apply(SolrDocumentList sdl)
Create a hit subset of the given SolrDocumentList according to the conjunction defined
in this object.
|
boolean |
equals(java.lang.Object otherTerm)
Equal method which returns true if the terms are logically equal.
|
Term |
lightestRewrite()
Applying a rewrite rule to the term should not change the logical expression of the term.
|
boolean |
matches(SolrDocument doc)
check if this term matches the SolrDocument
|
java.lang.String |
toString()
toString produces the Solr Query representation of the term
|
int |
weight()
the weight attribute of a term shows if rewritten terms
(using rules of replacement as allowed for propositional logic)
are shorter and therefore more efficient.
|
boolean equals(java.lang.Object otherTerm)
equals
in class java.lang.Object
otherTerm
- int weight()
java.lang.String toString()
toString
in class java.lang.Object
boolean matches(SolrDocument doc)
doc
- the document to match to this termSolrDocumentList apply(SolrDocumentList sdl)
sdl
- the SolrDocumentListTerm lightestRewrite()