Package | Description |
---|---|
org.apache.lucene.benchmark.byTask |
Benchmarking Lucene By Tasks.
|
org.apache.lucene.benchmark.quality |
Search Quality Benchmarking.
|
org.apache.lucene.benchmark.quality.utils |
Miscellaneous utilities for search quality benchmarking: query parsing, submission reports.
|
org.apache.lucene.demo |
Demo applications for indexing and searching.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.join |
This modules support index-time and query-time joins.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
IndexSearcher |
PerfRunData.getIndexSearcher() |
Modifier and Type | Field and Description |
---|---|
protected IndexSearcher |
QualityBenchmark.searcher
Index to be searched.
|
Constructor and Description |
---|
QualityBenchmark(QualityQuery[] qqs,
QualityQueryParser qqParser,
IndexSearcher searcher,
String docNameField)
Create a QualityBenchmark.
|
Modifier and Type | Method and Description |
---|---|
String |
DocNameExtractor.docName(IndexSearcher searcher,
int docid)
Extract the name of the input doc from the index.
|
void |
SubmissionReport.report(QualityQuery qq,
TopDocs td,
String docNameField,
IndexSearcher searcher)
Report a search result for a certain quality query.
|
Modifier and Type | Method and Description |
---|---|
static void |
SearchFiles.doPagingSearch(BufferedReader in,
IndexSearcher searcher,
Query query,
int hitsPerPage,
boolean raw,
boolean interactive)
This demonstrates a typical paging search scenario, where the search engine presents
pages of size n to the user.
|
Modifier and Type | Method and Description |
---|---|
protected abstract IndexSearcher |
ThreadedIndexingAndSearchingTestCase.getCurrentSearcher() |
protected abstract IndexSearcher |
ThreadedIndexingAndSearchingTestCase.getFinalSearcher() |
Modifier and Type | Method and Description |
---|---|
protected void |
ThreadedIndexingAndSearchingTestCase.releaseSearcher(IndexSearcher s) |
protected void |
ThreadedIndexingAndSearchingTestCase.smokeTestSearcher(IndexSearcher s) |
Modifier and Type | Method and Description |
---|---|
IndexSearcher |
MemoryIndex.createSearcher()
Creates and returns a searcher that can be used to execute arbitrary
Lucene queries and to collect the resulting query results as hits.
|
Modifier and Type | Class and Description |
---|---|
class |
AssertingIndexSearcher
Helper class that adds some extra checks to ensure correct
usage of
IndexSearcher and Weight . |
static class |
CheckHits.ExplanationAssertingSearcher
an IndexSearcher that implicitly checks hte explanation of every match
whenever it executes a search.
|
Modifier and Type | Field and Description |
---|---|
protected static IndexSearcher |
SearchEquivalenceTestBase.s1 |
protected static IndexSearcher |
SearchEquivalenceTestBase.s2 |
protected IndexSearcher[] |
IndexSearcher.subSearchers |
Modifier and Type | Method and Description |
---|---|
IndexSearcher |
SearcherLifetimeManager.acquire(long version)
Retrieve a previously recorded
IndexSearcher , if it
has not yet been closed
NOTE: this may return null when the
requested searcher has already timed out. |
IndexSearcher |
SearcherFactory.newSearcher(IndexReader reader)
Returns a new IndexSearcher over the given reader.
|
protected IndexSearcher |
SearcherManager.refreshIfNeeded(IndexSearcher referenceToRefresh) |
protected IndexSearcher |
NRTManager.refreshIfNeeded(IndexSearcher referenceToRefresh) |
static IndexSearcher |
QueryUtils.wrapUnderlyingReader(Random random,
IndexSearcher s,
int edge)
Given an IndexSearcher, returns a new IndexSearcher whose IndexReader
is a MultiReader containing the Reader of the original IndexSearcher,
as well as several "empty" IndexReaders -- some of which will have
deleted documents in them.
|
Modifier and Type | Method and Description |
---|---|
static void |
QueryUtils.checkSkipTo(Query q,
IndexSearcher s)
alternate scorer skipTo(),skipTo(),next(),next(),skipTo(),skipTo(), etc
and ensure a hitcollector receives same docs and scores
|
protected void |
SearcherManager.decRef(IndexSearcher reference) |
protected void |
NRTManager.decRef(IndexSearcher reference) |
boolean |
SearcherLifetimeManager.Pruner.doPrune(double ageSec,
IndexSearcher searcher)
Return true if this searcher should be removed.
|
boolean |
SearcherLifetimeManager.PruneByAge.doPrune(double ageSec,
IndexSearcher searcher) |
long |
SearcherLifetimeManager.record(IndexSearcher searcher)
Records that you are now using this IndexSearcher.
|
protected IndexSearcher |
SearcherManager.refreshIfNeeded(IndexSearcher referenceToRefresh) |
protected IndexSearcher |
NRTManager.refreshIfNeeded(IndexSearcher referenceToRefresh) |
void |
SearcherLifetimeManager.release(IndexSearcher s)
Release a searcher previously obtained from
SearcherLifetimeManager.acquire(long) . |
protected boolean |
SearcherManager.tryIncRef(IndexSearcher reference) |
protected boolean |
NRTManager.tryIncRef(IndexSearcher reference) |
static IndexSearcher |
QueryUtils.wrapUnderlyingReader(Random random,
IndexSearcher s,
int edge)
Given an IndexSearcher, returns a new IndexSearcher whose IndexReader
is a MultiReader containing the Reader of the original IndexSearcher,
as well as several "empty" IndexReaders -- some of which will have
deleted documents in them.
|
Modifier and Type | Method and Description |
---|---|
static Query |
JoinUtil.createJoinQuery(String fromField,
String toField,
Query fromQuery,
IndexSearcher fromSearcher)
Method for query time joining.
|
Modifier and Type | Method and Description |
---|---|
static IndexSearcher |
LuceneTestCase.newSearcher(IndexReader r)
create a new searcher over the reader.
|
static IndexSearcher |
LuceneTestCase.newSearcher(IndexReader r,
boolean maybeWrap)
create a new searcher over the reader.
|