Class LuceneQueryOptions
Lucene.NET specific query options
public class LuceneQueryOptions : QueryOptions
- Inheritance
-
LuceneQueryOptions
- Inherited Members
Constructors
LuceneQueryOptions(LuceneFacetSamplingQueryOptions?, int, int?, SearchAfterOptions?, bool, bool)
Constructor
public LuceneQueryOptions(LuceneFacetSamplingQueryOptions? facetSampling, int skip, int? take, SearchAfterOptions? searchAfter, bool trackDocumentScores, bool trackDocumentMaxScore)
Parameters
facetSampling
LuceneFacetSamplingQueryOptionsWhether to apply Facet sampling to improve performance. If not required, leave null
skip
intNumber of result documents to skip.
take
int?Optional number of result documents to take.
searchAfter
SearchAfterOptionsOptionally skip to results after the results from the previous search execution. Used for efficent deep paging.
trackDocumentScores
boolWhether to Track Document Scores. For best performance, if not needed, leave false.
trackDocumentMaxScore
boolWhether to track the maximum document score. For best performance, if not needed, leave false.
LuceneQueryOptions(int, int?, SearchAfterOptions?, bool, bool)
Constructor
[Obsolete("To remove in Examine 5.0")]
public LuceneQueryOptions(int skip, int? take = null, SearchAfterOptions? searchAfter = null, bool trackDocumentScores = false, bool trackDocumentMaxScore = false)
Parameters
skip
intNumber of result documents to skip.
take
int?Optional number of result documents to take.
searchAfter
SearchAfterOptionsOptionally skip to results after the results from the previous search execution. Used for efficent deep paging.
trackDocumentScores
boolWhether to Track Document Scores. For best performance, if not needed, leave false.
trackDocumentMaxScore
boolWhether to track the maximum document score. For best performance, if not needed, leave false.
Properties
FacetRandomSampling
Options for Lucene Facet Sampling. If not set, no Facet Sampling is applied.
public LuceneFacetSamplingQueryOptions? FacetRandomSampling { get; }
Property Value
Remarks
Performance optimization for large sets
SearchAfter
Options for Searching After. Used for efficent deep paging.
public SearchAfterOptions? SearchAfter { get; }
Property Value
TrackDocumentMaxScore
Whether to track the maximum document score. For best performance, if not needed, leave false.
public bool TrackDocumentMaxScore { get; }
Property Value
TrackDocumentScores
Whether to Track Document Scores. For best performance, if not needed, leave false.
public bool TrackDocumentScores { get; }