elasticpress-woocommerce-deprecated
elasticpress-woocommerce-deprecated copied to clipboard
Search order first and last name as an AND match
Right now, we are OR searching all the order fields:
'_order_key',
'_billing_company',
'_billing_address_1',
'_billing_address_2',
'_billing_city',
'_billing_postcode',
'_billing_country',
'_billing_state',
'_billing_email',
'_billing_phone',
'_shipping_address_1',
'_shipping_address_2',
'_shipping_city',
'_shipping_postcode',
'_shipping_country',
'_shipping_state',
'_billing_last_name',
'_billing_first_name',
'_shipping_first_name',
'_shipping_last_name',
_billing_last_name
and _billing_first_name
should be AND matched along with _shipping_last_name
and _shipping_last_name
. This will push exact name matches to the top of results.