Section navigation

Public namespace Rowles.LeanCorpus.Mapping.Attributes

Classes

Public class LeanDocumentAttribute

Marks a class or struct as a LeanCorpus document model. The source generator emits a paired {TypeName}Index static class with field descriptors, ToDocument, FromStoredDocument, and CreateSchema members.

Public class LeanGeoPointAttribute

Maps a LeanGeoLocation property to a GeoPointField.

Public class LeanIgnoreAttribute

Excludes a property from generated document mapping. The property is ignored entirely; no field descriptor, schema entry, or mapping code is emitted for it.

Public class LeanNumericAttribute

Maps a numeric, temporal, or decimal property to a NumericField (or a StoredField when Encoding is DecimalAsString).

Public class LeanStoredAttribute

Maps a stored-only property to either a StoredField (for string) or a BinaryField (for byte[]). The field is not indexed.

Public class LeanStringAttribute

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

Public class LeanTextAttribute

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

Public class LeanVectorAttribute

Maps a dense float vector property to a VectorField. The property type must be float[], and Dimension must be set to the expected length.