public class ScoreQuery
extends org.apache.lucene.search.Query
Query
implementation that is used to apply a FullTextSearchScore
criteria a NOT expression of another
wrapped Query object. This query implementation works by using the weight
and
scorer
of the wrapped query to score (and return) only those documents
that were not scored by the wrapped query. In other words, if the wrapped query ended up scoring any document, that
document is not scored (i.e., skipped) by this query.Modifier and Type | Class and Description |
---|---|
protected static class |
ScoreQuery.NotScorer
A scorer for the NOT query that iterates over documents (in increasing docId order), using the given scorer implementation
for the operand of the NOT.
|
protected class |
ScoreQuery.NotWeight
Calculates query weights and builds query scores for our NOT queries.
|
Modifier and Type | Field and Description |
---|---|
protected org.apache.lucene.search.Query |
operand
The operand that is being negated by this query.
|
Constructor and Description |
---|
ScoreQuery(org.apache.lucene.search.Query operand)
Construct a NOT(x) constraint where the 'x' operand is supplied.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher) |
String |
toString(String field) |
protected final org.apache.lucene.search.Query operand
public ScoreQuery(org.apache.lucene.search.Query operand)
operand
- the operand being negatedpublic org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
createWeight
in class org.apache.lucene.search.Query
Query.createWeight(org.apache.lucene.search.Searcher)
public Object clone()
clone
in class org.apache.lucene.search.Query
Query.clone()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.