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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIndexReader
public 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.Searchable
docFreq
in class org.apache.lucene.search.IndexSearcher
IOException
public QueryHits evaluate(org.apache.lucene.search.Query query) throws IOException
evaluate
in interface EvaluationContext
query
- the query to execute.IOException
- if an error occurs while executing the query.public SessionImpl getSession()
getSession
in interface EvaluationContext
public ItemStateManager getItemStateManager()
getItemStateManager
in interface EvaluationContext
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.