Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class TextField

    A field that is indexed and tokenized, without term vectors. For example this would be used on a 'body' field, that contains the bulk of a document's text.

    Inheritance
    System.Object
    Field
    TextField
    Implements
    IIndexableField
    System.IFormattable
    Inherited Members
    Field.m_type
    Field.m_name
    Field.FieldsData
    Field.m_tokenStream
    Field.m_boost
    Field.GetStringValue()
    Field.GetStringValue(IFormatProvider)
    Field.GetStringValue(String)
    Field.GetStringValue(String, IFormatProvider)
    Field.GetReaderValue()
    Field.GetTokenStreamValue()
    Field.SetStringValue(String)
    Field.SetReaderValue(TextReader)
    Field.SetBytesValue(BytesRef)
    Field.SetBytesValue(Byte[])
    Field.SetByteValue(Byte)
    Field.SetInt16Value(Int16)
    Field.SetInt32Value(Int32)
    Field.SetInt64Value(Int64)
    Field.SetSingleValue(Single)
    Field.SetDoubleValue(Double)
    Field.SetTokenStream(TokenStream)
    Field.Name
    Field.Boost
    Field.GetNumericValue()
    Field.NumericType
    Field.GetByteValue()
    Field.GetInt16Value()
    Field.GetInt32Value()
    Field.GetInt64Value()
    Field.GetSingleValue()
    Field.GetDoubleValue()
    Field.GetBinaryValue()
    Field.ToString()
    Field.ToString(String)
    Field.ToString(IFormatProvider)
    Field.ToString(String, IFormatProvider)
    Field.FieldType
    Field.IndexableFieldType
    Field.GetTokenStream(Analyzer)
    Field.TranslateFieldType(Field.Store, Field.Index, Field.TermVector)
    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.Documents
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class TextField : Field, IIndexableField, IFormattable

    Constructors

    | Improve this Doc View Source

    TextField(String, TokenStream)

    Creates a new un-stored TextField with TokenStream value.

    Declaration
    public TextField(string name, TokenStream stream)
    Parameters
    Type Name Description
    System.String name

    field name

    TokenStream stream

    TokenStream value

    Exceptions
    Type Condition
    System.ArgumentNullException

    if the field name or stream is null.

    | Improve this Doc View Source

    TextField(String, TextReader)

    Creates a new un-stored TextField with System.IO.TextReader value.

    Declaration
    public TextField(string name, TextReader reader)
    Parameters
    Type Name Description
    System.String name

    field name

    System.IO.TextReader reader

    System.IO.TextReader value

    Exceptions
    Type Condition
    System.ArgumentNullException

    if the field name or reader is null

    | Improve this Doc View Source

    TextField(String, String, Field.Store)

    Creates a new TextField with System.String value.

    Declaration
    public TextField(string name, string value, Field.Store store)
    Parameters
    Type Name Description
    System.String name

    field name

    System.String value

    System.String value

    Field.Store store

    YES if the content should also be stored

    Exceptions
    Type Condition
    System.ArgumentNullException

    if the field name or value is null.

    Fields

    | Improve this Doc View Source

    TYPE_NOT_STORED

    Indexed, tokenized, not stored.

    Declaration
    public static readonly FieldType TYPE_NOT_STORED
    Field Value
    Type Description
    FieldType
    | Improve this Doc View Source

    TYPE_STORED

    Indexed, tokenized, stored.

    Declaration
    public static readonly FieldType TYPE_STORED
    Field Value
    Type Description
    FieldType

    Implements

    IIndexableField
    System.IFormattable

    Extension Methods

    IndexableFieldExtensions.GetByteValueOrDefault(IIndexableField)
    IndexableFieldExtensions.GetInt16ValueOrDefault(IIndexableField)
    IndexableFieldExtensions.GetInt32ValueOrDefault(IIndexableField)
    IndexableFieldExtensions.GetInt64ValueOrDefault(IIndexableField)
    IndexableFieldExtensions.GetSingleValueOrDefault(IIndexableField)
    IndexableFieldExtensions.GetDoubleValueOrDefault(IIndexableField)
    • 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.