
GeoPointField
- Namespace
- Rowles.LeanCorpus.Document.Fields
- Assembly
- Rowles.LeanCorpus.dll
Indexed geo-point field. Stores latitude and longitude as two numeric fields (fieldName_lat and fieldName_lon) for range filtering and distance queries.
public sealed class GeoPointField : IField
- Inheritance
-
GeoPointField
- Implements
GeoPointField(string, double, double, float)
Initialises a new GeoPointField with the specified name, latitude, and longitude.
Boost
Index-time boost applied to queries that score this field.
FieldType
The kind of data this field holds.
IndexOptions
Controls which postings data (doc IDs, frequencies, positions, offsets) is written to the inverted index. Lower levels reduce disk usage and indexing time but disable phrase queries and scoring features. Default: DocsAndFreqsAndPositions for TextField; DocsAndFreqs for StringField; DocsOnly for NumericField.
IsIndexed
Whether the field is included in the inverted index.
IsStored
Whether the raw value is persisted in stored fields.
LatFieldName
Returns the lat sub-field name.
Latitude
Gets the latitude component of this geo-point in decimal degrees.
LonFieldName
Returns the lon sub-field name.
Longitude
Gets the longitude component of this geo-point in decimal degrees.
Name
Field name used for indexing and retrieval.
StoreDocValues
Whether to populate DocValues (sorted, sorted-set, numeric, binary) for this field.
When false, no DocValues sidecar files are produced for the field.
Default: true for StringField and NumericField;
false for TextField, StoredField, and BinaryField.
Value
Gets the serialised value of this field as "latitude,longitude".