Class DuplicateFilter
Filter to remove duplicate values from search results.
WARNING: for this to work correctly, you may have to wrap your reader as it cannot current deduplicate across different index segments.Inherited Members
Namespace: Lucene.Net.Sandbox.Queries
Assembly: Lucene.Net.Sandbox.dll
Syntax
public class DuplicateFilter : Filter
Constructors
DuplicateFilter(string)
Filter to remove duplicate values from search results.
WARNING: for this to work correctly, you may have to wrap your reader as it cannot current deduplicate across different index segments.Declaration
public DuplicateFilter(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName |
See Also
DuplicateFilter(string, KeepMode, ProcessingMode)
Filter to remove duplicate values from search results.
WARNING: for this to work correctly, you may have to wrap your reader as it cannot current deduplicate across different index segments.Declaration
public DuplicateFilter(string fieldName, KeepMode keepMode, ProcessingMode processingMode)
Parameters
Type | Name | Description |
---|---|---|
string | fieldName | |
KeepMode | keepMode | |
ProcessingMode | processingMode |
See Also
Properties
FieldName
Filter to remove duplicate values from search results.
WARNING: for this to work correctly, you may have to wrap your reader as it cannot current deduplicate across different index segments.Declaration
public virtual string FieldName { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
KeepMode
Filter to remove duplicate values from search results.
WARNING: for this to work correctly, you may have to wrap your reader as it cannot current deduplicate across different index segments.Declaration
public KeepMode KeepMode { get; set; }
Property Value
Type | Description |
---|---|
KeepMode |
See Also
ProcessingMode
Filter to remove duplicate values from search results.
WARNING: for this to work correctly, you may have to wrap your reader as it cannot current deduplicate across different index segments.Declaration
public ProcessingMode ProcessingMode { get; set; }
Property Value
Type | Description |
---|---|
ProcessingMode |
See Also
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
See Also
GetDocIdSet(AtomicReaderContext, IBits)
Creates a Lucene.Net.Search.DocIdSet enumerating the documents that should be
permitted in search results. NOTE:null
can be
returned if no documents are accepted by this Lucene.Net.Search.Filter.
Declaration
public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
Parameters
Type | Name | Description |
---|---|---|
AtomicReaderContext | context | a Lucene.Net.Index.AtomicReaderContext instance opened on the index currently searched on. Note, it is likely that the provided reader info 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. The provided context is always an atomic context, so you can call Lucene.Net.Index.AtomicReader.Fields on the context's reader, for example. |
IBits | acceptDocs | Lucene.Net.Util.IBits that represent the allowable docs to match (typically deleted docs but possibly filtering other documents) |
Returns
Type | Description |
---|---|
DocIdSet | A Lucene.Net.Search.DocIdSet that provides the documents which should be permitted or
prohibited in search results. NOTE: |
Overrides
See Also
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for the current object. |