public class IdsQuery
extends org.apache.lucene.search.Query
Query
implementation that is used to score positively those documents that have a ID in the supplied set. This
works for large sets of IDs; in smaller numbers, it may be more efficient to create a boolean query that checks for each of the
IDs.Modifier and Type | Class and Description |
---|---|
protected class |
IdsQuery.IdScorer
A scorer for the Path query.
|
protected class |
IdsQuery.IdSetWeight
Calculates query weights and builds query scores for our NOT queries.
|
Modifier and Type | Field and Description |
---|---|
protected String |
fieldName |
protected org.apache.lucene.document.FieldSelector |
fieldSelector |
protected Set<String> |
uuids
The operand that is being negated by this query.
|
Constructor and Description |
---|
IdsQuery(String fieldName,
Set<String> ids)
Construct a
Query implementation that scores nodes according to the supplied comparator. |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher) |
protected boolean |
includeDocument(org.apache.lucene.index.IndexReader reader,
int docId) |
String |
toString(String field) |
protected final org.apache.lucene.document.FieldSelector fieldSelector
protected final String fieldName
protected boolean includeDocument(org.apache.lucene.index.IndexReader reader, int docId) throws IOException
IOException
public 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)
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.