Section navigation

Public classSealed LeanStringAttribute

Namespace
Rowles.LeanCorpus.Mapping.Attributes
Assembly
Rowles.LeanCorpus.dll

Maps a string property to a StringField. The value is indexed verbatim and does not pass through the analyser.

[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class LeanStringAttribute : Attribute
Inheritance
LeanStringAttribute

Public constructor LeanStringAttribute(string)

Initialises a new LeanStringAttribute.

Public property Name

The field name used at indexing time.

Public property Required

Whether the field is required by the generated schema.

Public property Stored

Whether the original value is persisted in stored fields. Defaults to true.