Method SearchAfter
SearchAfter(ScoreDoc, Query, Int32)
Finds the top n
hits for top query
where all results are after a previous
result (top after
).
By passing the bottom result from a previous page as after
,
this method can be used for efficient 'deep-paging' across potentially
large result sets.
Declaration
[TargetMethod("SearchAfter", 1)]
public virtual TopDocs SearchAfter(ScoreDoc after, Query query, int n)
Parameters
Type | Name | Description |
---|---|---|
ScoreDoc | after | |
Query | query | |
System.Int32 | n |
Returns
Type | Description |
---|---|
TopDocs |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed MaxClauseCount clauses. |
SearchAfter(ScoreDoc, Query, Filter, Int32)
Finds the top n
hits for query
, applying filter
if non-null,
where all results are after a previous result (after
).
By passing the bottom result from a previous page as after
,
this method can be used for efficient 'deep-paging' across potentially
large result sets.
Declaration
[TargetMethod("SearchAfter", 2)]
public virtual TopDocs SearchAfter(ScoreDoc after, Query query, Filter filter, int n)
Parameters
Type | Name | Description |
---|---|---|
ScoreDoc | after | |
Query | query | |
Filter | filter | |
System.Int32 | n |
Returns
Type | Description |
---|---|
TopDocs |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed MaxClauseCount clauses. |
SearchAfter(ScoreDoc, Query, Filter, Int32, Sort)
Finds the top n
hits for query
, applying filter
if non-null,
where all results are after a previous result (after
).
By passing the bottom result from a previous page as after
,
this method can be used for efficient 'deep-paging' across potentially
large result sets.
Declaration
[TargetMethod("SearchAfter", 3)]
public virtual TopDocs SearchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort)
Parameters
Type | Name | Description |
---|---|---|
ScoreDoc | after | |
Query | query | |
Filter | filter | |
System.Int32 | n | |
Sort | sort |
Returns
Type | Description |
---|---|
TopDocs |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed MaxClauseCount clauses. |
SearchAfter(ScoreDoc, Query, Int32, Sort)
Finds the top n
hits for query
where all results are after a previous
result (after
).
By passing the bottom result from a previous page as after
,
this method can be used for efficient 'deep-paging' across potentially
large result sets.
Declaration
[TargetMethod("SearchAfter", 4)]
public virtual TopDocs SearchAfter(ScoreDoc after, Query query, int n, Sort sort)
Parameters
Type | Name | Description |
---|---|---|
ScoreDoc | after | |
Query | query | |
System.Int32 | n | |
Sort | sort |
Returns
Type | Description |
---|---|
TopDocs |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed MaxClauseCount clauses. |
SearchAfter(ScoreDoc, Query, Filter, Int32, Sort, Boolean, Boolean)
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.
By passing the bottom result from a previous page as after
,
this method can be used for efficient 'deep-paging' across potentially
large result sets. If doDocScores
is true
then the score of each hit will be computed and
returned. If doMaxScore
is
true
then the maximum score over all
collected hits will be computed.
Declaration
[TargetMethod("SearchAfter", 5)]
public virtual TopDocs SearchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort, bool doDocScores, bool doMaxScore)
Parameters
Type | Name | Description |
---|---|---|
ScoreDoc | after | |
Query | query | |
Filter | filter | |
System.Int32 | n | |
Sort | sort | |
System.Boolean | doDocScores | |
System.Boolean | doMaxScore |
Returns
Type | Description |
---|---|
TopDocs |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If a query would exceed MaxClauseCount clauses. |