Package | Description |
---|---|
org.apache.lucene.benchmark.quality.utils |
Miscellaneous utilities for search quality benchmarking: query parsing, submission reports.
|
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.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
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)
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) |
TopDocs |
SortRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
abstract TopDocs |
Rescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN)
Rescore an initial first-pass
TopDocs . |
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 |
IndexSearcher.search(Query query,
Filter filter,
int n)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.search(Query query,
int numHits) |
TopDocs |
CheckHits.ExplanationAssertingSearcher.search(Query query,
int n) |
TopDocs |
IndexSearcher.search(Query query,
int n)
Finds the top
n
hits for query . |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
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)
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.
|
TopDocs |
SortRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
abstract TopDocs |
Rescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN)
Rescore an initial first-pass
TopDocs . |
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 String |
CheckHits.topdocsString(TopDocs docs,
int start,
int end) |
Modifier and Type | Method and Description |
---|---|
String[] |
PostingsHighlighter.highlight(String field,
Query query,
IndexSearcher searcher,
TopDocs topDocs)
Highlights the top passages from a single field.
|
String[] |
PostingsHighlighter.highlight(String field,
Query query,
IndexSearcher searcher,
TopDocs topDocs,
int maxPassages)
Highlights the top-N passages from a single field.
|
Map<String,String[]> |
PostingsHighlighter.highlightFields(String[] fields,
Query query,
IndexSearcher searcher,
TopDocs topDocs)
Highlights the top passages from multiple fields.
|
Map<String,String[]> |
PostingsHighlighter.highlightFields(String[] fields,
Query query,
IndexSearcher searcher,
TopDocs topDocs,
int[] maxPassages)
Highlights the top-N passages from multiple fields.
|
Modifier and Type | Class and Description |
---|---|
class |
TopSuggestDocs
|
Modifier and Type | Method and Description |
---|---|
static void |
TestUtil.assertEquals(TopDocs expected,
TopDocs actual) |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.