|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.lucene.search.Query
org.apache.jackrabbit.core.query.lucene.QueryHitsQuery
public class QueryHitsQuery
QueryHitsQuery exposes a QueryHits implementation again
as a Lucene Query.
| Nested Class Summary | |
|---|---|
class |
QueryHitsQuery.QueryHitsQueryScorer
the scorer implementation for this query. |
class |
QueryHitsQuery.QueryHitsQueryWeight
The Weight implementation for this query. |
| Constructor Summary | |
|---|---|
QueryHitsQuery(QueryHits hits)
Creates a new query based on QueryHits. |
|
| Method Summary | |
|---|---|
org.apache.lucene.search.Weight |
createWeight(org.apache.lucene.search.Searcher searcher)
|
QueryHits |
execute(JackrabbitIndexSearcher searcher,
SessionImpl session,
org.apache.lucene.search.Sort sort)
Executes this query and returns QueryHits or null if
this query should be executed using the regular Lucene API. |
void |
extractTerms(Set<org.apache.lucene.index.Term> terms)
|
String |
toString(String field)
|
| Methods inherited from class org.apache.lucene.search.Query |
|---|
clone, combine, equals, getBoost, getSimilarity, hashCode, mergeBooleanQueries, rewrite, setBoost, toString, weight |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryHitsQuery(QueryHits hits)
QueryHits.
hits - the query hits.| Method Detail |
|---|
public org.apache.lucene.search.Weight createWeight(org.apache.lucene.search.Searcher searcher)
throws IOException
createWeight in class org.apache.lucene.search.QueryIOExceptionpublic String toString(String field)
toString in class org.apache.lucene.search.Querypublic void extractTerms(Set<org.apache.lucene.index.Term> terms)
extractTerms in class org.apache.lucene.search.Query
public QueryHits execute(JackrabbitIndexSearcher searcher,
SessionImpl session,
org.apache.lucene.search.Sort sort)
throws IOException
QueryHits or null if
this query should be executed using the regular Lucene API.
Important note: an implementation must not call
JackrabbitIndexSearcher#execute(Query, Sort, long)
with this query instance as a parameter, otherwise a stack overflow will
occur.
execute in interface JackrabbitQuerysearcher - the jackrabbit index searcher.session - the session that executes the query.sort - the sort criteria that must be reflected in the returned
QueryHits.
null if the regular Lucene API
should be used by the caller.
IOException - if an error occurs while executing the query.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||