Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Lookup.LookupResult

    Result of a lookup.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    System.Object
    Lookup.LookupResult
    Implements
    System.IComparable<Lookup.LookupResult>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Search.Suggest
    Assembly: Lucene.Net.Suggest.dll
    Syntax
    public sealed class LookupResult : IComparable<Lookup.LookupResult>

    Constructors

    | Improve this Doc View Source

    LookupResult(String, Int64)

    Create a new result from a key+weight pair.

    Declaration
    public LookupResult(string key, long value)
    Parameters
    Type Name Description
    System.String key
    System.Int64 value
    | Improve this Doc View Source

    LookupResult(String, Int64, BytesRef)

    Create a new result from a key+weight+payload triple.

    Declaration
    public LookupResult(string key, long value, BytesRef payload)
    Parameters
    Type Name Description
    System.String key
    System.Int64 value
    Lucene.Net.Util.BytesRef payload
    | Improve this Doc View Source

    LookupResult(String, Int64, BytesRef, IEnumerable<BytesRef>)

    Create a new result from a key+weight+payload+contexts triple.

    Declaration
    public LookupResult(string key, long value, BytesRef payload, IEnumerable<BytesRef> contexts)
    Parameters
    Type Name Description
    System.String key
    System.Int64 value
    Lucene.Net.Util.BytesRef payload
    System.Collections.Generic.IEnumerable<Lucene.Net.Util.BytesRef> contexts
    | Improve this Doc View Source

    LookupResult(String, Int64, ISet<BytesRef>)

    Create a new result from a key+weight+contexts triple.

    Declaration
    public LookupResult(string key, long value, ISet<BytesRef> contexts)
    Parameters
    Type Name Description
    System.String key
    System.Int64 value
    System.Collections.Generic.ISet<Lucene.Net.Util.BytesRef> contexts
    | Improve this Doc View Source

    LookupResult(String, Object, Int64, BytesRef)

    Create a new result from a key+highlightKey+weight+payload triple.

    Declaration
    public LookupResult(string key, object highlightKey, long value, BytesRef payload)
    Parameters
    Type Name Description
    System.String key
    System.Object highlightKey
    System.Int64 value
    Lucene.Net.Util.BytesRef payload
    | Improve this Doc View Source

    LookupResult(String, Object, Int64, BytesRef, IEnumerable<BytesRef>)

    Create a new result from a key+highlightKey+weight+payload+contexts triple.

    Declaration
    public LookupResult(string key, object highlightKey, long value, BytesRef payload, IEnumerable<BytesRef> contexts)
    Parameters
    Type Name Description
    System.String key
    System.Object highlightKey
    System.Int64 value
    Lucene.Net.Util.BytesRef payload
    System.Collections.Generic.IEnumerable<Lucene.Net.Util.BytesRef> contexts

    Properties

    | Improve this Doc View Source

    Contexts

    the key's contexts (null if not present)

    Declaration
    public IEnumerable<BytesRef> Contexts { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<Lucene.Net.Util.BytesRef>
    | Improve this Doc View Source

    HighlightKey

    Expert: custom Object to hold the result of a highlighted suggestion.

    Declaration
    public object HighlightKey { get; }
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    Key

    the key's text

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

    Payload

    the key's payload (null if not present)

    Declaration
    public BytesRef Payload { get; }
    Property Value
    Type Description
    Lucene.Net.Util.BytesRef
    | Improve this Doc View Source

    Value

    the key's weight

    Declaration
    public long Value { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    CompareTo(Lookup.LookupResult)

    Compare alphabetically.

    Declaration
    public int CompareTo(Lookup.LookupResult o)
    Parameters
    Type Name Description
    Lookup.LookupResult o
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()

    Implements

    System.IComparable<T>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.