Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    Lucene.Net.Search.Filter
    DuplicateFilter
    Inherited Members
    Filter.NewAnonymous(Func<AtomicReaderContext, IBits, DocIdSet>)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Sandbox.Queries
    Assembly: Lucene.Net.Sandbox.dll
    Syntax
    public class DuplicateFilter : Filter

    Constructors

    | Improve this Doc View Source

    DuplicateFilter(String)

    Declaration
    public DuplicateFilter(string fieldName)
    Parameters
    Type Name Description
    System.String fieldName
    | Improve this Doc View Source

    DuplicateFilter(String, KeepMode, ProcessingMode)

    Declaration
    public DuplicateFilter(string fieldName, KeepMode keepMode, ProcessingMode processingMode)
    Parameters
    Type Name Description
    System.String fieldName
    KeepMode keepMode
    ProcessingMode processingMode

    Properties

    | Improve this Doc View Source

    FieldName

    Declaration
    public virtual string FieldName { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    KeepMode

    Declaration
    public KeepMode KeepMode { get; set; }
    Property Value
    Type Description
    KeepMode
    | Improve this Doc View Source

    ProcessingMode

    Declaration
    public ProcessingMode ProcessingMode { get; set; }
    Property Value
    Type Description
    ProcessingMode

    Methods

    | Improve this Doc View Source

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)
    | Improve this Doc View Source

    GetDocIdSet(AtomicReaderContext, IBits)

    Declaration
    public override DocIdSet GetDocIdSet(AtomicReaderContext context, IBits acceptDocs)
    Parameters
    Type Name Description
    Lucene.Net.Index.AtomicReaderContext context
    Lucene.Net.Util.IBits acceptDocs
    Returns
    Type Description
    Lucene.Net.Search.DocIdSet
    Overrides
    Lucene.Net.Search.Filter.GetDocIdSet(Lucene.Net.Index.AtomicReaderContext, Lucene.Net.Util.IBits)
    | Improve this Doc View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    See Also

    Lucene.Net.Index.SlowCompositeReaderWrapper
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.