Package | Description |
---|---|
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
Modifier and Type | Method and Description |
---|---|
DrillSideways.DrillSidewaysResult |
DrillSideways.search(ScoreDoc after,
DrillDownQuery query,
int topN)
Search, sorting by score, and computing
drill down and sideways counts.
|
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 . |
Modifier and Type | Class and Description |
---|---|
class |
TopDocsCollector<T extends ScoreDoc>
A base class for all collectors that return a
TopDocs output. |
Modifier and Type | Class and Description |
---|---|
static class |
DiversifiedTopDocsCollector.ScoreDocKey
An extension to ScoreDoc that includes a key used for grouping purposes
|
class |
FieldDoc
Expert: A ScoreDoc which also contains information about
how to sort the referenced document.
|
static class |
FieldValueHitQueue.Entry
Extension of ScoreDoc to also store the
FieldComparator slot. |
Modifier and Type | Field and Description |
---|---|
ScoreDoc[] |
TopDocs.scoreDocs
The top hits for the query.
|
Modifier and Type | Method and Description |
---|---|
static void |
CheckHits.checkDocIds(String mes,
int[] results,
ScoreDoc[] hits)
Tests that a Hits has an expected order of documents
|
static void |
CheckHits.checkEqual(Query query,
ScoreDoc[] hits1,
ScoreDoc[] hits2) |
static void |
CheckHits.checkEqual(Query query,
ScoreDoc[] hits1,
ScoreDoc[] hits2) |
static void |
CheckHits.checkHitsQuery(Query query,
ScoreDoc[] hits1,
ScoreDoc[] hits2,
int[] results)
Tests that two queries have an expected order of documents,
and that the two queries have the same score values.
|
static void |
CheckHits.checkHitsQuery(Query query,
ScoreDoc[] hits1,
ScoreDoc[] hits2,
int[] results)
Tests that two queries have an expected order of documents,
and that the two queries have the same score values.
|
static TopScoreDocCollector |
TopScoreDocCollector.create(int numHits,
ScoreDoc after)
Creates a new
TopScoreDocCollector given the number of hits to
collect, the bottom of the previous page, and whether documents are scored in order by the input
Scorer to LeafCollector.setScorer(Scorer) . |
static String |
CheckHits.hits2str(ScoreDoc[] hits1,
ScoreDoc[] hits2,
int start,
int end) |
static String |
CheckHits.hits2str(ScoreDoc[] hits1,
ScoreDoc[] hits2,
int start,
int end) |
TopDocs |
ShardSearchingTestBase.NodeState.ShardIndexSearcher.localSearchAfter(ScoreDoc after,
Query query,
int numHits) |
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) |
protected void |
TopDocsCollector.populateResults(ScoreDoc[] results,
int howMany)
Populates the results array with the ScoreDoc instances.
|
protected void |
TopFieldCollector.populateResults(ScoreDoc[] results,
int howMany) |
TopDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopFieldDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int n,
Sort sort)
Deprecated.
Use
boolean queries with
BooleanClause.Occur.FILTER clauses instead |
TopFieldDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
Filter filter,
int numHits,
Sort sort,
boolean doDocScores,
boolean doMaxScore)
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 ). |
TopFieldDocs |
IndexSearcher.searchAfter(ScoreDoc after,
Query query,
int numHits,
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. |
Constructor and Description |
---|
TopDocs(int totalHits,
ScoreDoc[] scoreDocs,
float maxScore) |
TopFieldDocs(int totalHits,
ScoreDoc[] scoreDocs,
SortField[] fields,
float maxScore)
Creates one of these objects.
|
Modifier and Type | Field and Description |
---|---|
ScoreDoc[] |
GroupDocs.scoreDocs
Hits; this may be
FieldDoc instances if the
withinGroupSort sorted by fields. |
Constructor and Description |
---|
GroupDocs(float score,
float maxScore,
int totalHits,
ScoreDoc[] scoreDocs,
GROUP_VALUE_TYPE groupValue,
Object[] groupSortValues) |
Modifier and Type | Class and Description |
---|---|
static class |
TopSuggestDocs.SuggestScoreDoc
ScoreDoc with an
additional CharSequence key |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.