Package | Description |
---|---|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
org.apache.lucene.benchmark.quality.utils |
Miscellaneous utilities for search quality benchmarking: query parsing, submission reports.
|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).
|
org.apache.lucene.demo.facet |
Facets example code.
|
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
protected int |
ReadTask.withTopDocs(IndexSearcher searcher,
Query q,
TopDocs hits) |
protected int |
SearchTravRetHighlightTask.withTopDocs(IndexSearcher searcher,
Query q,
TopDocs hits) |
Modifier and Type | Method and Description |
---|---|
void |
SubmissionReport.report(QualityQuery qq,
TopDocs td,
java.lang.String docNameField,
IndexSearcher searcher)
Report a search result for a certain quality query.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.buildListFromTopDocs(TopDocs topDocs)
build a list of classification results from search results
|
protected ClassificationResult<BytesRef> |
KNearestNeighborClassifier.classifyFromTopDocs(TopDocs knnResults)
TODO
|
Modifier and Type | Method and Description |
---|---|
TopDocs |
DistanceFacetsExample.drillDown(DoubleRange range)
User drills down on the specified range.
|
TopDocs |
RangeFacetsExample.drillDown(LongRange range)
User drills down on the specified range.
|
Modifier and Type | Field and Description |
---|---|
TopDocs |
DrillSideways.DrillSidewaysResult.hits
Hits.
|
Modifier and Type | Method and Description |
---|---|
static TopDocs |
FacetsCollector.search(IndexSearcher searcher,
Query q,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
static TopDocs |
FacetsCollector.searchAfter(IndexSearcher searcher,
ScoreDoc after,
Query q,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
Constructor and Description |
---|
DrillSidewaysResult(Facets facets,
TopDocs hits)
Sole constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
TopFieldDocs
Represents hits returned by
IndexSearcher.search(Query,int,Sort) . |
Modifier and Type | Field and Description |
---|---|
protected static TopDocs |
TopDocsCollector.EMPTY_TOPDOCS
This is used in case topDocs() is called with illegal parameters, or there
simply aren't (enough) results.
|
Modifier and Type | Method and Description |
---|---|
TopDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.localSearch(Query query,
int numHits) |
TopDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.localSearchAfter(ScoreDoc after,
Query query,
int numHits) |
static TopDocs |
TopDocs.merge(int start,
int topN,
TopDocs[] shardHits,
boolean setShardIndex)
Same as
merge(int, TopDocs[]) but also ignores the top
start top docs. |
static TopDocs |
TopDocs.merge(int topN,
TopDocs[] shardHits)
Returns a new TopDocs, containing topN results across
the provided TopDocs, sorting by score.
|
protected TopDocs |
DiversifiedTopDocsCollector.newTopDocs(ScoreDoc[] results,
int start) |
protected TopDocs |
TopDocsCollector.newTopDocs(ScoreDoc[] results,
int start)
Returns a
TopDocs instance containing the given results. |
protected TopDocs |
TopScoreDocCollector.newTopDocs(ScoreDoc[] results,
int start) |
protected TopDocs |
TopFieldCollector.newTopDocs(ScoreDoc[] results,
int start) |
abstract TopDocs |
Rescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN)
Rescore an initial first-pass
TopDocs . |
TopDocs |
SortRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
static TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs topDocs,
Query query,
double weight,
int topN)
Sugar API, calling {#rescore} using a simple linear
combination of firstPassScore + weight * secondPassScore
|
TopDocs |
CheckHits.ExplanationAssertingSearcher.search(Query query,
int n) |
TopDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.search(Query query,
int numHits) |
TopDocs |
IndexSearcher.search(Query query,
int n)
Finds the top
n
hits for query . |
TopDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.searchAfter(ScoreDoc after,
Query query,
int numHits) |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
int numHits)
Finds the top
n
hits for query where all results are after a previous
result (after ). |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
int n,
Sort sort)
Finds the top
n
hits for query where all results are after a previous
result (after ). |
TopDocs |
TopDocsCollector.topDocs()
Returns the top docs that were collected by this collector.
|
TopDocs |
TopDocsCollector.topDocs(int start)
Returns the documents in the range [start ..
|
TopDocs |
TopDocsCollector.topDocs(int start,
int howMany)
Returns the documents in the range [start ..
|
Modifier and Type | Method and Description |
---|---|
static TopDocs |
TopDocs.merge(int start,
int topN,
TopDocs[] shardHits,
boolean setShardIndex)
Same as
merge(int, TopDocs[]) but also ignores the top
start top docs. |
static TopDocs |
TopDocs.merge(int topN,
TopDocs[] shardHits)
Returns a new TopDocs, containing topN results across
the provided TopDocs, sorting by score.
|
abstract TopDocs |
Rescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN)
Rescore an initial first-pass
TopDocs . |
TopDocs |
SortRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
static TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs topDocs,
Query query,
double weight,
int topN)
Sugar API, calling {#rescore} using a simple linear
combination of firstPassScore + weight * secondPassScore
|
static java.lang.String |
CheckHits.topdocsString(TopDocs docs,
int start,
int end) |
Modifier and Type | Class and Description |
---|---|
class |
TopSuggestDocs
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
UnifiedHighlighter.highlight(java.lang.String field,
Query query,
TopDocs topDocs)
Highlights the top passages from a single field.
|
java.lang.String[] |
UnifiedHighlighter.highlight(java.lang.String field,
Query query,
TopDocs topDocs,
int maxPassages)
Highlights the top-N passages from a single field.
|
java.util.Map<java.lang.String,java.lang.String[]> |
UnifiedHighlighter.highlightFields(java.lang.String[] fields,
Query query,
TopDocs topDocs)
Highlights the top passages from multiple fields.
|
java.util.Map<java.lang.String,java.lang.String[]> |
UnifiedHighlighter.highlightFields(java.lang.String[] fields,
Query query,
TopDocs topDocs,
int[] maxPassages)
Highlights the top-N passages from multiple fields.
|
Modifier and Type | Method and Description |
---|---|
static void |
TestUtil.assertEquals(TopDocs expected,
TopDocs actual) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.