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.DuplicateFilter Class Reference

Inherits Lucene.Net.Search.Filter.

Public Member Functions

 DuplicateFilter (String fieldName)
 
 DuplicateFilter (String fieldName, int keepMode, int processingMode)
 
override DocIdSet GetDocIdSet (IndexReader reader)
 
 
override bool Equals (Object obj)
 
override int GetHashCode ()
 

Static Public Attributes

static int KM_USE_FIRST_OCCURRENCE = 1
 
static int KM_USE_LAST_OCCURRENCE = 2
 
static int PM_FULL_VALIDATION = 1
 
static int PM_FAST_INVALIDATION = 2
 

Properties

string FieldName [get, set]
 
int KeepMode [get, set]
 
int ProcessingMode [get, set]
 

Detailed Description

Definition at line 29 of file DuplicateFilter.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.DuplicateFilter.DuplicateFilter ( String  fieldName)

Definition at line 58 of file DuplicateFilter.cs.

Lucene.Net.Search.DuplicateFilter.DuplicateFilter ( String  fieldName,
int  keepMode,
int  processingMode 
)

Definition at line 63 of file DuplicateFilter.cs.

Member Function Documentation

override bool Lucene.Net.Search.DuplicateFilter.Equals ( Object  obj)

Definition at line 175 of file DuplicateFilter.cs.

override DocIdSet Lucene.Net.Search.DuplicateFilter.GetDocIdSet ( IndexReader  reader)
virtual

Creates a DocIdSet enumerating the documents that should be permitted in search results. NOTE: null can be returned if no documents are accepted by this Filter.

Note: This method will be called once per segment in the index during searching. The returned DocIdSet must refer to document IDs for that segment, not for the top-level reader.

/summary>

Returns
a DocIdSet that provides the documents which should be permitted or prohibited in search results. NOTE: null can be returned if no documents will be accepted by this Filter.
Parameters
readerA IndexReader instance opened on the index currently searched on. Note, it is likely that the provided reader does not represent the whole underlying index i.e. if the index has more than one segment the given reader only represents a single segment.
See Also
DocIdBitSet

Implements Lucene.Net.Search.Filter.

Definition at line 70 of file DuplicateFilter.cs.

override int Lucene.Net.Search.DuplicateFilter.GetHashCode ( )

Definition at line 187 of file DuplicateFilter.cs.

Member Data Documentation

int Lucene.Net.Search.DuplicateFilter.KM_USE_FIRST_OCCURRENCE = 1
static

Definition at line 38 of file DuplicateFilter.cs.

int Lucene.Net.Search.DuplicateFilter.KM_USE_LAST_OCCURRENCE = 2
static

Definition at line 39 of file DuplicateFilter.cs.

int Lucene.Net.Search.DuplicateFilter.PM_FAST_INVALIDATION = 2
static

Definition at line 54 of file DuplicateFilter.cs.

int Lucene.Net.Search.DuplicateFilter.PM_FULL_VALIDATION = 1
static

Definition at line 53 of file DuplicateFilter.cs.

Property Documentation

string Lucene.Net.Search.DuplicateFilter.FieldName
getset

Definition at line 164 of file DuplicateFilter.cs.

int Lucene.Net.Search.DuplicateFilter.KeepMode
getset

Definition at line 170 of file DuplicateFilter.cs.

int Lucene.Net.Search.DuplicateFilter.ProcessingMode
getset

Definition at line 197 of file DuplicateFilter.cs.


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