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
- facetSamplingLuceneFacetSamplingQueryOptions
- Whether to apply Facet sampling to improve performance. If not required, leave null 
- skipint
- Number of result documents to skip. 
- takeint?
- Optional number of result documents to take. 
- searchAfterSearchAfterOptions
- Optionally skip to results after the results from the previous search execution. Used for efficent deep paging. 
- trackDocumentScoresbool
- Whether to Track Document Scores. For best performance, if not needed, leave false. 
- trackDocumentMaxScorebool
- Whether 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
- skipint
- Number of result documents to skip. 
- takeint?
- Optional number of result documents to take. 
- searchAfterSearchAfterOptions
- Optionally skip to results after the results from the previous search execution. Used for efficent deep paging. 
- trackDocumentScoresbool
- Whether to Track Document Scores. For best performance, if not needed, leave false. 
- trackDocumentMaxScorebool
- Whether 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; }