public class JackrabbitIndexSearcher extends org.apache.lucene.search.IndexSearcher implements EvaluationContext
JackrabbitIndexSearcher implements an index searcher with
jackrabbit specific optimizations.| Constructor and Description |
|---|
JackrabbitIndexSearcher(SessionImpl s,
org.apache.lucene.index.IndexReader r,
ItemStateManager ism)
Creates a new jackrabbit index searcher.
|
| Modifier and Type | Method and Description |
|---|---|
int |
docFreq(org.apache.lucene.index.Term term) |
QueryHits |
evaluate(org.apache.lucene.search.Query query)
Evaluates the query and returns the hits that match the query.
|
QueryHits |
evaluate(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort,
long resultFetchHint)
Evaluates the query and returns the hits that match the query.
|
MultiColumnQueryHits |
execute(org.apache.lucene.search.Query query,
org.apache.lucene.search.Sort sort,
long resultFetchHint,
Name selectorName)
Executes the query and returns the hits that match the query.
|
ItemStateManager |
getItemStateManager() |
SessionImpl |
getSession() |
close, createNormalizedWeight, doc, doc, explain, explain, gatherSubReaders, getIndexReader, getSimilarity, getSubReaders, maxDoc, rewrite, search, search, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, setDefaultFieldSortScoring, setSimilarity, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIndexReaderpublic JackrabbitIndexSearcher(SessionImpl s, org.apache.lucene.index.IndexReader r, ItemStateManager ism)
s - the session that executes the query.r - the index reader.ism - the shared item state manager.public MultiColumnQueryHits execute(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort, long resultFetchHint, Name selectorName) throws IOException
query - the query to execute.sort - the sort criteria.resultFetchHint - a hint on how many results should be fetched.selectorName - the single selector name for the query hits.IOException - if an error occurs while executing the query.public QueryHits evaluate(org.apache.lucene.search.Query query, org.apache.lucene.search.Sort sort, long resultFetchHint) throws IOException
query - the query to execute.sort - the sort criteria.resultFetchHint - a hint on how many results should be fetched.IOException - if an error occurs while executing the query.public int docFreq(org.apache.lucene.index.Term term)
throws IOException
docFreq in interface org.apache.lucene.search.SearchabledocFreq in class org.apache.lucene.search.IndexSearcherIOExceptionpublic QueryHits evaluate(org.apache.lucene.search.Query query) throws IOException
evaluate in interface EvaluationContextquery - the query to execute.IOException - if an error occurs while executing the query.public SessionImpl getSession()
getSession in interface EvaluationContextpublic ItemStateManager getItemStateManager()
getItemStateManager in interface EvaluationContextCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.