public class SolrIndexSearcher extends org.apache.lucene.search.IndexSearcher implements SolrInfoMBean
Modifier and Type | Class and Description |
---|---|
static class |
SolrIndexSearcher.ProcessedFilter |
static class |
SolrIndexSearcher.QueryCommand
A query request command to avoid having to change the method signatures
if we want to pass additional information to the searcher.
|
static class |
SolrIndexSearcher.QueryResult
The result of a search.
|
(package private) static class |
SolrIndexSearcher.SetNonLazyFieldSelector
FieldSelector which loads the specified fields, and load all other
field lazily.
|
static class |
SolrIndexSearcher.TermDocsState |
SolrInfoMBean.Category
Modifier and Type | Field and Description |
---|---|
private SolrCache[] |
cacheList |
private java.util.HashMap<java.lang.String,SolrCache> |
cacheMap |
private boolean |
cachingEnabled |
private boolean |
closeReader |
private SolrCore |
core |
private SolrCache<java.lang.Integer,org.apache.lucene.document.Document> |
documentCache |
boolean |
enableLazyFieldLoading |
private java.util.Collection<java.lang.String> |
fieldNames |
private SolrCache<java.lang.String,java.lang.Object> |
fieldValueCache |
private SolrCache<org.apache.lucene.search.Query,DocSet> |
filterCache |
static int |
GET_DOCLIST |
static int |
GET_DOCSET |
static int |
GET_SCORES |
private java.lang.String |
indexDir |
private static org.slf4j.Logger |
log |
private static org.apache.lucene.search.Query |
matchAllDocsQuery |
private java.lang.String |
name |
private static int |
NO_CHECK_FILTERCACHE |
private static int |
NO_CHECK_QCACHE |
private static int |
NO_SET_QCACHE |
private static SolrCache[] |
noCaches |
private static java.util.HashMap<java.lang.String,SolrCache> |
noGenericCaches |
static java.util.concurrent.atomic.AtomicLong |
numCloses |
static java.util.concurrent.atomic.AtomicLong |
numOpens |
private long |
openTime |
private LuceneQueryOptimizer |
optimizer |
private SolrCache<QueryResultKey,DocList> |
queryResultCache |
private int |
queryResultMaxDocsCached |
private int |
queryResultWindowSize |
private SolrIndexReader |
reader |
private long |
registerTime |
private IndexSchema |
schema |
private static java.util.Comparator<org.apache.lucene.search.Query> |
sortByCost |
private java.util.Collection<java.lang.String> |
storedHighlightFieldNames |
private boolean |
useFilterForSortedQuery |
private long |
warmupTime |
Constructor and Description |
---|
SolrIndexSearcher(SolrCore core,
IndexSchema schema,
java.lang.String name,
org.apache.lucene.store.Directory directory,
boolean enableCache) |
SolrIndexSearcher(SolrCore core,
IndexSchema schema,
java.lang.String name,
org.apache.lucene.store.Directory directory,
boolean readOnly,
boolean enableCache)
Creates a searcher searching the index in the provided directory.
|
SolrIndexSearcher(SolrCore core,
IndexSchema schema,
java.lang.String name,
org.apache.lucene.index.IndexReader r,
boolean enableCache)
Creates a searcher searching the provided index.
|
SolrIndexSearcher(SolrCore core,
IndexSchema schema,
java.lang.String name,
org.apache.lucene.index.IndexReader r,
boolean closeReader,
boolean enableCache) |
SolrIndexSearcher(SolrCore core,
IndexSchema schema,
java.lang.String name,
java.lang.String path,
boolean enableCache)
Deprecated.
use alternate constructor
|
Modifier and Type | Method and Description |
---|---|
void |
cacheDocSet(org.apache.lucene.search.Query query,
DocSet optionalAnswer,
boolean mustCache)
Compute and cache the DocSet that matches a query.
|
java.lang.Object |
cacheInsert(java.lang.String cacheName,
java.lang.Object key,
java.lang.Object val)
insert an entry in a generic cache
|
java.lang.Object |
cacheLookup(java.lang.String cacheName,
java.lang.Object key)
lookup an entry in a generic cache
|
void |
close()
Free's resources associated with this searcher.
|
DocSet |
convertFilter(org.apache.lucene.search.Filter lfilter)
Converts a filter into a DocSet.
|
org.apache.lucene.document.Document |
doc(int i)
Retrieve the
Document instance corresponding to the document id. |
org.apache.lucene.document.Document |
doc(int n,
org.apache.lucene.document.FieldSelector fieldSelector)
Retrieve a
Document using a FieldSelector
This method does not currently use the Solr document cache. |
org.apache.lucene.document.Document |
doc(int i,
java.util.Set<java.lang.String> fields)
Retrieve the
Document instance corresponding to the document id. |
org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Query query,
int doc) |
SolrCache |
getCache(java.lang.String cacheName)
return the named generic cache
|
SolrInfoMBean.Category |
getCategory()
Purpose of this Class
|
SolrCore |
getCore() |
java.lang.String |
getDescription()
Simple one or two line description
|
DocList |
getDocList(org.apache.lucene.search.Query query,
DocSet filter,
org.apache.lucene.search.Sort lsort,
int offset,
int len)
Returns documents matching both
query and filter
and sorted by sort . |
DocList |
getDocList(org.apache.lucene.search.Query query,
java.util.List<org.apache.lucene.search.Query> filterList,
org.apache.lucene.search.Sort lsort,
int offset,
int len,
int flags)
Returns documents matching both
query and the
intersection of the filterList , sorted by sort . |
DocList |
getDocList(org.apache.lucene.search.Query query,
org.apache.lucene.search.Query filter,
org.apache.lucene.search.Sort lsort,
int offset,
int len)
Returns documents matching both
query and filter
and sorted by sort . |
DocListAndSet |
getDocListAndSet(org.apache.lucene.search.Query query,
DocSet filter,
org.apache.lucene.search.Sort lsort,
int offset,
int len)
Returns documents matching both
query and filter
and sorted by sort . |
DocListAndSet |
getDocListAndSet(org.apache.lucene.search.Query query,
DocSet filter,
org.apache.lucene.search.Sort lsort,
int offset,
int len,
int flags)
Returns documents matching both
query and filter
and sorted by sort . |
DocListAndSet |
getDocListAndSet(org.apache.lucene.search.Query query,
java.util.List<org.apache.lucene.search.Query> filterList,
org.apache.lucene.search.Sort lsort,
int offset,
int len)
Returns documents matching both
query and the intersection
of filterList , sorted by sort . |
DocListAndSet |
getDocListAndSet(org.apache.lucene.search.Query query,
java.util.List<org.apache.lucene.search.Query> filterList,
org.apache.lucene.search.Sort lsort,
int offset,
int len,
int flags)
Returns documents matching both
query and the intersection
of filterList , sorted by sort . |
DocListAndSet |
getDocListAndSet(org.apache.lucene.search.Query query,
org.apache.lucene.search.Query filter,
org.apache.lucene.search.Sort lsort,
int offset,
int len)
Returns documents matching both
query and filter
and sorted by sort . |
DocListAndSet |
getDocListAndSet(org.apache.lucene.search.Query query,
org.apache.lucene.search.Query filter,
org.apache.lucene.search.Sort lsort,
int offset,
int len,
int flags)
Returns documents matching both
query and filter
and sorted by sort . |
private DocSet |
getDocListAndSetNC(SolrIndexSearcher.QueryResult qr,
SolrIndexSearcher.QueryCommand cmd) |
private void |
getDocListC(SolrIndexSearcher.QueryResult qr,
SolrIndexSearcher.QueryCommand cmd)
getDocList version that uses+populates query and filter caches.
|
private void |
getDocListNC(SolrIndexSearcher.QueryResult qr,
SolrIndexSearcher.QueryCommand cmd) |
java.net.URL[] |
getDocs()
Documentation URL list.
|
DocSet |
getDocSet(java.util.List<org.apache.lucene.search.Query> queries)
Returns the set of document ids matching all queries.
|
DocSet |
getDocSet(org.apache.lucene.search.Query query)
Returns the set of document ids matching a query.
|
DocSet |
getDocSet(org.apache.lucene.search.Query query,
DocSet filter)
Returns the set of document ids matching both the query and the filter.
|
protected DocSet |
getDocSetNC(org.apache.lucene.search.Query query,
DocSet filter) |
protected DocSet |
getDocSetNC(org.apache.lucene.search.Query query,
DocSet filter,
SolrIndexSearcher.TermDocsState tdState) |
java.util.Collection<java.lang.String> |
getFieldNames()
Returns a collection of all field names the index reader knows about.
|
SolrCache |
getFieldValueCache()
expert: internal API, subject to change
|
int |
getFirstMatch(org.apache.lucene.index.Term t)
Returns the first document number containing the term
t
Returns -1 if no document was found. |
java.lang.String |
getIndexDir() |
java.lang.String |
getName()
Simple common usage name, e.g.
|
long |
getOpenTime() |
(package private) DocSet |
getPositiveDocSet(org.apache.lucene.search.Query q) |
DocSet |
getPositiveDocSet(org.apache.lucene.search.Query q,
SolrIndexSearcher.TermDocsState tdState) |
SolrIndexSearcher.ProcessedFilter |
getProcessedFilter(DocSet setFilter,
java.util.List<org.apache.lucene.search.Query> queries) |
SolrIndexReader |
getReader()
Direct access to the IndexReader used by this searcher
|
IndexSchema |
getSchema()
Direct access to the IndexSchema for use with this searcher
|
java.lang.String |
getSource()
CVS Source, SVN Source, etc
|
java.lang.String |
getSourceId()
CVS Id, SVN Id, etc
|
NamedList |
getStatistics()
Any statistics this instance would like to be publicly available via
the Solr Administration interface.
|
java.util.Collection<java.lang.String> |
getStoredHighlightFieldNames()
Returns a collection of the names of all stored fields which can be
highlighted the index reader knows about.
|
java.lang.String |
getVersion()
Simple common usage version, e.g.
|
static void |
initRegenerators(SolrConfig solrConfig) |
int |
numDocs(org.apache.lucene.search.Query a,
DocSet b)
Returns the number of documents that match both
a and b . |
int |
numDocs(org.apache.lucene.search.Query a,
org.apache.lucene.search.Query b)
Returns the number of documents that match both
a and b . |
org.apache.lucene.document.Document[] |
readDocs(DocList ids)
Takes a list of docs (the doc ids actually), and returns an array
of Documents containing all of the stored fields.
|
void |
readDocs(org.apache.lucene.document.Document[] docs,
DocList ids)
Takes a list of docs (the doc ids actually), and reads them into an array
of Documents.
|
void |
readDocs(org.apache.lucene.document.Document[] docs,
DocList ids,
java.util.Set<java.lang.String> fields)
Takes a list of docs (the doc ids actually) and a set of fields to load,
and reads them into an array of Documents.
|
void |
register()
Register sub-objects such as caches
|
SolrIndexSearcher.QueryResult |
search(SolrIndexSearcher.QueryResult qr,
SolrIndexSearcher.QueryCommand cmd) |
protected DocList |
sortDocSet(DocSet set,
org.apache.lucene.search.Sort sort,
int nDocs) |
java.lang.String |
toString() |
void |
warm(SolrIndexSearcher old)
Warm this searcher based on an old one (primarily for auto-cache warming).
|
org.apache.lucene.search.Sort |
weightSort(org.apache.lucene.search.Sort sort)
Returns a weighted sort according to this searcher
|
private static SolrIndexReader |
wrap(org.apache.lucene.index.IndexReader r) |
createNormalizedWeight, docFreq, explain, gatherSubReaders, getIndexReader, getSimilarity, getSubReaders, maxDoc, rewrite, search, search, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, setDefaultFieldSortScoring, setSimilarity
public static final java.util.concurrent.atomic.AtomicLong numOpens
public static final java.util.concurrent.atomic.AtomicLong numCloses
private static org.slf4j.Logger log
private final SolrCore core
private final IndexSchema schema
private java.lang.String indexDir
private final java.lang.String name
private long openTime
private long registerTime
private long warmupTime
private final SolrIndexReader reader
private final boolean closeReader
private final int queryResultWindowSize
private final int queryResultMaxDocsCached
private final boolean useFilterForSortedQuery
public final boolean enableLazyFieldLoading
private final boolean cachingEnabled
private final SolrCache<QueryResultKey,DocList> queryResultCache
private final SolrCache<java.lang.Integer,org.apache.lucene.document.Document> documentCache
private final SolrCache<java.lang.String,java.lang.Object> fieldValueCache
private final LuceneQueryOptimizer optimizer
private final java.util.HashMap<java.lang.String,SolrCache> cacheMap
private static final java.util.HashMap<java.lang.String,SolrCache> noGenericCaches
private final SolrCache[] cacheList
private static final SolrCache[] noCaches
private final java.util.Collection<java.lang.String> fieldNames
private java.util.Collection<java.lang.String> storedHighlightFieldNames
private static org.apache.lucene.search.Query matchAllDocsQuery
private static java.util.Comparator<org.apache.lucene.search.Query> sortByCost
private static final int NO_CHECK_QCACHE
public static final int GET_DOCSET
private static final int NO_CHECK_FILTERCACHE
private static final int NO_SET_QCACHE
public static final int GET_DOCLIST
public static final int GET_SCORES
@Deprecated public SolrIndexSearcher(SolrCore core, IndexSchema schema, java.lang.String name, java.lang.String path, boolean enableCache) throws java.io.IOException
java.io.IOException
public SolrIndexSearcher(SolrCore core, IndexSchema schema, java.lang.String name, org.apache.lucene.store.Directory directory, boolean enableCache) throws java.io.IOException
java.io.IOException
public SolrIndexSearcher(SolrCore core, IndexSchema schema, java.lang.String name, org.apache.lucene.store.Directory directory, boolean readOnly, boolean enableCache) throws java.io.IOException
java.io.IOException
public SolrIndexSearcher(SolrCore core, IndexSchema schema, java.lang.String name, org.apache.lucene.index.IndexReader r, boolean enableCache)
public SolrIndexSearcher(SolrCore core, IndexSchema schema, java.lang.String name, org.apache.lucene.index.IndexReader r, boolean closeReader, boolean enableCache)
private static SolrIndexReader wrap(org.apache.lucene.index.IndexReader r)
public java.lang.String toString()
toString
in class org.apache.lucene.search.IndexSearcher
public SolrCore getCore()
public void register()
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface org.apache.lucene.search.Searchable
close
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public SolrIndexReader getReader()
public IndexSchema getSchema()
public java.util.Collection<java.lang.String> getFieldNames()
public java.util.Collection<java.lang.String> getStoredHighlightFieldNames()
public static void initRegenerators(SolrConfig solrConfig)
public SolrIndexSearcher.QueryResult search(SolrIndexSearcher.QueryResult qr, SolrIndexSearcher.QueryCommand cmd) throws java.io.IOException
java.io.IOException
public java.lang.String getIndexDir()
SolrIndexSearcher(SolrCore, IndexSchema, String, Directory, boolean)
public org.apache.lucene.document.Document doc(int i) throws java.io.IOException
Document
instance corresponding to the document id.doc
in interface org.apache.lucene.search.Searchable
doc
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public org.apache.lucene.document.Document doc(int n, org.apache.lucene.document.FieldSelector fieldSelector) throws java.io.IOException
Document
using a FieldSelector
This method does not currently use the Solr document cache.doc
in interface org.apache.lucene.search.Searchable
doc
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
IndexReader.document(int, FieldSelector)
public org.apache.lucene.document.Document doc(int i, java.util.Set<java.lang.String> fields) throws java.io.IOException
Document
instance corresponding to the document id.
Note: The document will have all fields accessable, but if a field
filter is provided, only the provided fields will be loaded (the
remainder will be available lazily).java.io.IOException
public void readDocs(org.apache.lucene.document.Document[] docs, DocList ids) throws java.io.IOException
java.io.IOException
public void readDocs(org.apache.lucene.document.Document[] docs, DocList ids, java.util.Set<java.lang.String> fields) throws java.io.IOException
java.io.IOException
public SolrCache getFieldValueCache()
public org.apache.lucene.search.Sort weightSort(org.apache.lucene.search.Sort sort) throws java.io.IOException
java.io.IOException
public int getFirstMatch(org.apache.lucene.index.Term t) throws java.io.IOException
t
Returns -1 if no document was found.
This method is primarily intended for clients that want to fetch
documents using a unique identifier."t
- java.io.IOException
public void cacheDocSet(org.apache.lucene.search.Query query, DocSet optionalAnswer, boolean mustCache) throws java.io.IOException
If the optionalAnswer DocSet is provided, it should *not* be modified after this call.
query
- the lucene query that will act as the keyoptionalAnswer
- the DocSet to be cached - if null, it will be computed.mustCache
- if true, a best effort will be made to cache this entry.
if false, heuristics may be used to determine if it should be cached.java.io.IOException
public DocSet getDocSet(org.apache.lucene.search.Query query) throws java.io.IOException
The DocSet returned should not be modified.
java.io.IOException
DocSet getPositiveDocSet(org.apache.lucene.search.Query q) throws java.io.IOException
java.io.IOException
public DocSet getPositiveDocSet(org.apache.lucene.search.Query q, SolrIndexSearcher.TermDocsState tdState) throws java.io.IOException
java.io.IOException
public DocSet getDocSet(java.util.List<org.apache.lucene.search.Query> queries) throws java.io.IOException
The DocSet returned should not be modified.
java.io.IOException
public SolrIndexSearcher.ProcessedFilter getProcessedFilter(DocSet setFilter, java.util.List<org.apache.lucene.search.Query> queries) throws java.io.IOException
java.io.IOException
protected DocSet getDocSetNC(org.apache.lucene.search.Query query, DocSet filter) throws java.io.IOException
java.io.IOException
protected DocSet getDocSetNC(org.apache.lucene.search.Query query, DocSet filter, SolrIndexSearcher.TermDocsState tdState) throws java.io.IOException
java.io.IOException
public DocSet getDocSet(org.apache.lucene.search.Query query, DocSet filter) throws java.io.IOException
query
- filter
- may be nulljava.io.IOException
public DocSet convertFilter(org.apache.lucene.search.Filter lfilter) throws java.io.IOException
java.io.IOException
public DocList getDocList(org.apache.lucene.search.Query query, org.apache.lucene.search.Query filter, org.apache.lucene.search.Sort lsort, int offset, int len) throws java.io.IOException
query
and filter
and sorted by sort
.
This method is cache aware and may retrieve filter
from
the cache or make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
query
- filter
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnjava.io.IOException
public DocList getDocList(org.apache.lucene.search.Query query, java.util.List<org.apache.lucene.search.Query> filterList, org.apache.lucene.search.Sort lsort, int offset, int len, int flags) throws java.io.IOException
query
and the
intersection of the filterList
, sorted by sort
.
This method is cache aware and may retrieve filter
from
the cache or make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
query
- filterList
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnjava.io.IOException
private void getDocListC(SolrIndexSearcher.QueryResult qr, SolrIndexSearcher.QueryCommand cmd) throws java.io.IOException
java.io.IOException
private void getDocListNC(SolrIndexSearcher.QueryResult qr, SolrIndexSearcher.QueryCommand cmd) throws java.io.IOException
java.io.IOException
private DocSet getDocListAndSetNC(SolrIndexSearcher.QueryResult qr, SolrIndexSearcher.QueryCommand cmd) throws java.io.IOException
java.io.IOException
public DocList getDocList(org.apache.lucene.search.Query query, DocSet filter, org.apache.lucene.search.Sort lsort, int offset, int len) throws java.io.IOException
query
and filter
and sorted by sort
.
FUTURE: The returned DocList may be retrieved from a cache.query
- filter
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnjava.io.IOException
public DocListAndSet getDocListAndSet(org.apache.lucene.search.Query query, org.apache.lucene.search.Query filter, org.apache.lucene.search.Sort lsort, int offset, int len) throws java.io.IOException
query
and filter
and sorted by sort
. Also returns the complete set of documents
matching query
and filter
(regardless of offset
and len
).
This method is cache aware and may retrieve filter
from
the cache or make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
The DocList and DocSet returned should not be modified.
query
- filter
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnjava.io.IOException
public DocListAndSet getDocListAndSet(org.apache.lucene.search.Query query, org.apache.lucene.search.Query filter, org.apache.lucene.search.Sort lsort, int offset, int len, int flags) throws java.io.IOException
query
and filter
and sorted by sort
. Also returns the compete set of documents
matching query
and filter
(regardless of offset
and len
).
This method is cache aware and may retrieve filter
from
the cache or make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
The DocList and DocSet returned should not be modified.
query
- filter
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnflags
- user supplied flags for the result setjava.io.IOException
public DocListAndSet getDocListAndSet(org.apache.lucene.search.Query query, java.util.List<org.apache.lucene.search.Query> filterList, org.apache.lucene.search.Sort lsort, int offset, int len) throws java.io.IOException
query
and the intersection
of filterList
, sorted by sort
.
Also returns the compete set of documents
matching query
and filter
(regardless of offset
and len
).
This method is cache aware and may retrieve filter
from
the cache or make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
The DocList and DocSet returned should not be modified.
query
- filterList
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnjava.io.IOException
public DocListAndSet getDocListAndSet(org.apache.lucene.search.Query query, java.util.List<org.apache.lucene.search.Query> filterList, org.apache.lucene.search.Sort lsort, int offset, int len, int flags) throws java.io.IOException
query
and the intersection
of filterList
, sorted by sort
.
Also returns the compete set of documents
matching query
and filter
(regardless of offset
and len
).
This method is cache aware and may retrieve filter
from
the cache or make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
The DocList and DocSet returned should not be modified.
query
- filterList
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnflags
- user supplied flags for the result setjava.io.IOException
public DocListAndSet getDocListAndSet(org.apache.lucene.search.Query query, DocSet filter, org.apache.lucene.search.Sort lsort, int offset, int len) throws java.io.IOException
query
and filter
and sorted by sort
. Also returns the compete set of documents
matching query
and filter
(regardless of offset
and len
).
FUTURE: The returned DocList may be retrieved from a cache.
query
- filter
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnjava.io.IOException
public DocListAndSet getDocListAndSet(org.apache.lucene.search.Query query, DocSet filter, org.apache.lucene.search.Sort lsort, int offset, int len, int flags) throws java.io.IOException
query
and filter
and sorted by sort
. Also returns the compete set of documents
matching query
and filter
(regardless of offset
and len
).
This method is cache aware and may make an insertion into the cache as a result of this call.
FUTURE: The returned DocList may be retrieved from a cache.
The DocList and DocSet returned should not be modified.
query
- filter
- may be nulllsort
- criteria by which to sort (if null, query relevance is used)offset
- offset into the list of documents to returnlen
- maximum number of documents to returnflags
- user supplied flags for the result setjava.io.IOException
protected DocList sortDocSet(DocSet set, org.apache.lucene.search.Sort sort, int nDocs) throws java.io.IOException
java.io.IOException
public int numDocs(org.apache.lucene.search.Query a, DocSet b) throws java.io.IOException
a
and b
.
This method is cache-aware and may check as well as modify the cache.
a
- b
- a
and b
.java.io.IOException
public int numDocs(org.apache.lucene.search.Query a, org.apache.lucene.search.Query b) throws java.io.IOException
a
and b
.
This method is cache-aware and may check as well as modify the cache.
a
- b
- a
and b
.java.io.IOException
public org.apache.lucene.document.Document[] readDocs(DocList ids) throws java.io.IOException
java.io.IOException
public void warm(SolrIndexSearcher old) throws java.io.IOException
java.io.IOException
public SolrCache getCache(java.lang.String cacheName)
public java.lang.Object cacheLookup(java.lang.String cacheName, java.lang.Object key)
public java.lang.Object cacheInsert(java.lang.String cacheName, java.lang.Object key, java.lang.Object val)
public long getOpenTime()
public org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Query query, int doc) throws java.io.IOException
explain
in class org.apache.lucene.search.IndexSearcher
java.io.IOException
public java.lang.String getName()
SolrInfoMBean
getName
in interface SolrInfoMBean
public java.lang.String getVersion()
SolrInfoMBean
getVersion
in interface SolrInfoMBean
public java.lang.String getDescription()
SolrInfoMBean
getDescription
in interface SolrInfoMBean
public SolrInfoMBean.Category getCategory()
SolrInfoMBean
getCategory
in interface SolrInfoMBean
public java.lang.String getSourceId()
SolrInfoMBean
getSourceId
in interface SolrInfoMBean
public java.lang.String getSource()
SolrInfoMBean
getSource
in interface SolrInfoMBean
public java.net.URL[] getDocs()
SolrInfoMBean
Suggested documentation URLs: Homepage for sponsoring project, FAQ on class usage, Design doc for class, Wiki, bug reporting URL, etc...
getDocs
in interface SolrInfoMBean
public NamedList getStatistics()
SolrInfoMBean
Any Object type may be stored in the list, but only the
toString()
representation will be used.
getStatistics
in interface SolrInfoMBean