Method SetDefaultFieldSortScoring
SetDefaultFieldSortScoring(Boolean, Boolean)
By default, no scores are computed when sorting by field (using Search(Query, Filter, Int32, Sort)). You can change that, per IndexSearcher instance, by calling this method. Note that this will incur a CPU cost.
Declaration
public virtual void SetDefaultFieldSortScoring(bool doTrackScores, bool doMaxScore)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | doTrackScores | If true, then scores are returned for every matching document in TopFieldDocs. |
System.Boolean | doMaxScore | If true, then the max score for all matching docs is computed. |