Method SetCaching
SetCaching(Int32, Boolean)
Enables caching for the second pass search. The cache will not contain more than the maximum specified documents. The cache is filled during the first pass searched and then replayed during the second pass searched. If the cache grows beyond the specified limit, then the cache is purged and not used in the second pass search.
Declaration
public virtual GroupingSearch SetCaching(int maxDocsToCache, bool cacheScores)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxDocsToCache | The maximum number of documents the cache is allowed to hold |
System.Boolean | cacheScores | Whether to cache the scores |
Returns
Type | Description |
---|---|
GroupingSearch |
|