Filter: ep_query_weighting_fields

apply_filters( 'ep_query_weighting_fields', $weighted_field, $field, $weight, $fieldset, $weights ) → {array}

Filter fields and their weitghting as used in the Elasticsearch query.

Parameters:
Name Type Description
$weighted_field string

The field and its weight as used in the ES query.

$field string

Field name

$weight string

Weight value

$fieldset array

Current subset of formatted ES args

$weights array

Weight configuration

Since:
  • 3.5.5
Source:
Returns:

New weighted field string

Type
array