Package | Description |
---|---|
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.
|
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,
Filter filter,
int n,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
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,
Filter filter,
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,
Filter filter,
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,
Filter filter,
int n,
Sort sort,
Collector fc)
Utility method, to search and also collect all hits
into the provided
Collector . |
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 . |
Constructor and Description |
---|
DrillSideways.DrillSidewaysResult(Facets facets,
TopDocs hits)
Sole constructor.
|
Modifier and Type | Class and Description |
---|---|
class |
TopFieldDocs
Represents hits returned by
IndexSearcher.search(Query,Filter,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 |
---|---|
static TopDocs |
TopDocs.merge(Sort sort,
int start,
int size,
TopDocs[] shardHits)
Same as
merge(Sort, int, TopDocs[]) but also slices the result at the same time based
on the provided start and size. |
static TopDocs |
TopDocs.merge(Sort sort,
int topN,
TopDocs[] shardHits)
Returns a new TopDocs, containing topN results across
the provided TopDocs, sorting by the specified
Sort . |
protected TopDocs |
TopScoreDocCollector.newTopDocs(ScoreDoc[] results,
int start) |
protected TopDocs |
TopDocsCollector.newTopDocs(ScoreDoc[] results,
int start)
Returns a
TopDocs instance containing the given results. |
protected TopDocs |
TopFieldCollector.newTopDocs(ScoreDoc[] results,
int start) |
TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
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 . |
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
|
protected TopDocs |
IndexSearcher.search(List<AtomicReaderContext> leaves,
Weight weight,
ScoreDoc after,
int nDocs)
Expert: Low-level search implementation.
|
TopDocs |
IndexSearcher.search(Query query,
Filter filter,
int n)
Finds the top
n
hits for query , applying filter if non-null. |
TopDocs |
IndexSearcher.search(Query query,
int n)
Finds the top
n
hits for query . |
protected TopDocs |
IndexSearcher.search(Weight weight,
ScoreDoc after,
int nDocs)
Expert: Low-level search implementation.
|
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n)
Finds the top
n
hits for query , applying filter if non-null,
where all results are after a previous result (after ). |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n,
Sort sort)
Finds the top
n
hits for query , applying filter if non-null,
where all results are after a previous result (after ). |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
Finds the top
n
hits for query where all results are after a previous
result (after ), allowing control over
whether hit scores and max score should be computed. |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
int n)
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 rage [start ..
|
TopDocs |
TopDocsCollector.topDocs(int start,
int howMany)
Returns the documents in the rage [start ..
|
Modifier and Type | Method and Description |
---|---|
static TopDocs |
TopDocs.merge(Sort sort,
int start,
int size,
TopDocs[] shardHits)
Same as
merge(Sort, int, TopDocs[]) but also slices the result at the same time based
on the provided start and size. |
static TopDocs |
TopDocs.merge(Sort sort,
int topN,
TopDocs[] shardHits)
Returns a new TopDocs, containing topN results across
the provided TopDocs, sorting by the specified
Sort . |
TopDocs |
QueryRescorer.rescore(IndexSearcher searcher,
TopDocs firstPassTopDocs,
int topN) |
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 . |
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
|
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.
|
Copyright © 2000-2016 The Apache Software Foundation. All Rights Reserved.