Note: The following default defined copyField element
in the
schema.xml file:
<copyField
source="customerRanking" dest="customerRanking_display"/>
Where:
- customerRanking
- This field is of type tfloat which performs better when using
arithmetical operations. This field is used for comparisons when searching.
For example,
customerRanking > 5
.
- customerRanking_display
- This field has a type of float. The performance of casting float
to string is better, so this field is returned in the search results
and is used to display items on the storefront.
When stored is set to true, the original information
is stored in the index. making whether the field is tokenized or non-tokenized
not relevant. If you want to retrieve the field to display it, you
must set stored to true, otherwise, you can only search on the field.
See Structured content for
more information.
In the following lesson, you will use the
customerRanking index field to store the ranking data retrieved from
the external XML file.