|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Query
org.jboss.dna.search.lucene.query.IdsQuery
public class IdsQuery

A Lucene 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.
| Constructor Summary | |
|---|---|
IdsQuery(String fieldName,
Set<String> ids)
Construct a Query implementation that scores nodes according to the supplied comparator. |
|
| Method Summary | |
|---|---|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher)
|
String |
toString(String field)
|
| Methods inherited from class org.apache.lucene.search.Query |
|---|
clone, combine, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, weight |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IdsQuery(String fieldName,
Set<String> ids)
Query implementation that scores nodes according to the supplied comparator.
fieldName - the name of the document field containing the value; may not be nullids - the set of ID values; may not be null| Method Detail |
|---|
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
createWeight in class org.apache.lucene.search.QueryQuery.createWeight(org.apache.lucene.search.Searcher)public String toString(String field)
toString in class org.apache.lucene.search.QueryQuery.toString(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||