SilverStripe\Elastica\QueryGenerator::convertWeightedFieldsForElastica
Use the configuration from the Search settings held in the database to form the array of fields suitable for a multimatch query. Call this after having called setClasses.
Signature
public function convertWeightedFieldsForElastica(
$fields )
Parameters
$fields
—
Returns
- array
- Array of fieldsname to weight