Section navigation

Public classSealed LeanTextAttribute

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

Maps a string property to a TextField. The value passes through the analyser pipeline at indexing time.

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

Public constructor LeanTextAttribute(string)

Initialises a new LeanTextAttribute.

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.