dataField property
dynamic
dataField
final
The index field(s) to be connected to the component’s UI view.
It accepts an List<String>
in addition to <String>
, which is useful for searching across multiple fields with or without field weights.
Field weights allow weighted search for the index fields. A higher number implies a higher relevance weight for the corresponding field in the search results.
You can define the dataField
property as a List<Map>
of to set the field weights. The object must have the field
and weight
keys.
For example,
[
{
'field': 'original_title',
'weight': 1
},
{
'field': 'original_title.search',
'weight': 3
},
]
Implementation
final dynamic dataField;