Show / Hide Table of Contents

    Class StringField

    A field that is indexed but not tokenized: the entire value is indexed as a single token. For example this might be used for a 'country' field or an 'id' field, or any field that you intend to use for sorting or access through the field cache.

    Inheritance
    System.Object
    Field
    StringField
    Implements
    IIndexableField
    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.FieldType
    Field.IndexableFieldType
    Field.GetTokenStream(Analyzer)
    Field.TranslateFieldType(Field.Store, Field.Index, Field.TermVector)
    Namespace: Lucene.Net.Documents
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class StringField : Field, IIndexableField

    Constructors

    | Improve this Doc View Source

    StringField(String, String, Field.Store)

    Creates a new StringField (a field that is indexed but not tokenized)

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

    field name

    System.String value

    value

    Field.Store stored

    YES if the content should also be stored

    Fields

    | Improve this Doc View Source

    TYPE_NOT_STORED

    Indexed, not tokenized, omits norms, indexes DOCS_ONLY, not stored.

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

    TYPE_STORED

    Indexed, not tokenized, omits norms, indexes DOCS_ONLY, stored

    Declaration
    public static readonly FieldType TYPE_STORED
    Field Value
    Type Description
    FieldType

    Implements

    IIndexableField
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)