SearchResultFieldName
SearchResultFieldName:
object
A data type representing an index field value, along with properties describing how to format and display the index field value.
Type declaration
dataType
dataType:
"text"|"date"|"number"
The data type to treat this index field as.
dateFormatOptions?
optionaldateFormatOptions:unknown
TODO: Implement DateFormatOptions, for date formatting
fieldName
fieldName:
string
The index field name.
numberFormatLocale?
optionalnumberFormatLocale:string
The locale to use when formatting dataType: number
numberFormatOptions?
optionalnumberFormatOptions:Intl.NumberFormatOptions
If it’s a number, the number format to apply. reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
numberScale?
optionalnumberScale:number
A scale factor to apply to a number value.