Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | Static Public Attributes | Properties | List of all members
Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite Class Reference

A rewrite method that tries to pick the best constant-score rewrite method based on term and document counts from the query. If both the number of terms and documents is small enough, then CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE is used. Otherwise, CONSTANT_SCORE_FILTER_REWRITE is used. More...

Inherits Lucene.Net.Search.RewriteMethod.

Inherited by Lucene.Net.Search.MultiTermQuery.AnonymousClassConstantScoreAutoRewrite.

Public Member Functions

 ConstantScoreAutoRewrite ()
 
override Query Rewrite (IndexReader reader, MultiTermQuery query)
 
override int GetHashCode ()
 
override bool Equals (System.Object obj)
 

Static Public Attributes

static int DEFAULT_TERM_COUNT_CUTOFF = 350
 
static double DEFAULT_DOC_COUNT_PERCENT = 0.1
 

Properties

virtual int TermCountCutoff [get, set]
 If the number of terms in this query is equal to or larger than this setting then CONSTANT_SCORE_FILTER_REWRITE is used.
 
virtual double DocCountPercent [get, set]
 If the number of documents to be visited in the postings exceeds this specified percentage of the MaxDoc for the index, then CONSTANT_SCORE_FILTER_REWRITE is used.
 

Detailed Description

A rewrite method that tries to pick the best constant-score rewrite method based on term and document counts from the query. If both the number of terms and documents is small enough, then CONSTANT_SCORE_BOOLEAN_QUERY_REWRITE is used. Otherwise, CONSTANT_SCORE_FILTER_REWRITE is used.

Definition at line 214 of file MultiTermQuery.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.ConstantScoreAutoRewrite ( )

Definition at line 216 of file MultiTermQuery.cs.

Member Function Documentation

override bool Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.Equals ( System.Object  obj)

Definition at line 325 of file MultiTermQuery.cs.

override int Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.GetHashCode ( )

Definition at line 319 of file MultiTermQuery.cs.

override Query Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.Rewrite ( IndexReader  reader,
MultiTermQuery  query 
)
virtual

Implements Lucene.Net.Search.RewriteMethod.

Definition at line 260 of file MultiTermQuery.cs.

Member Data Documentation

double Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.DEFAULT_DOC_COUNT_PERCENT = 0.1
static

Definition at line 233 of file MultiTermQuery.cs.

int Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.DEFAULT_TERM_COUNT_CUTOFF = 350
static

Definition at line 229 of file MultiTermQuery.cs.

Property Documentation

virtual double Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.DocCountPercent
getset

If the number of documents to be visited in the postings exceeds this specified percentage of the MaxDoc for the index, then CONSTANT_SCORE_FILTER_REWRITE is used.

0.0 to 100.0

Definition at line 255 of file MultiTermQuery.cs.

virtual int Lucene.Net.Search.MultiTermQuery.ConstantScoreAutoRewrite.TermCountCutoff
getset

If the number of terms in this query is equal to or larger than this setting then CONSTANT_SCORE_FILTER_REWRITE is used.

Definition at line 243 of file MultiTermQuery.cs.


The documentation for this class was generated from the following file: