Skip to content

Instantly share code, notes, and snippets.

@algotrader-dotcom
Forked from solepixel/formatted-args.txt
Created January 23, 2019 03:24
Show Gist options
  • Save algotrader-dotcom/3e206d29760e42260018698511395745 to your computer and use it in GitHub Desktop.
Save algotrader-dotcom/3e206d29760e42260018698511395745 to your computer and use it in GitHub Desktop.
ElasticPress arguments
Array
(
[from] => 0
[size] => 54
[sort] => Array
(
[0] => Array
(
[meta_value_num] => Array
(
[order] => desc
[ignore_unmapped] => 1
)
)
)
[query] => Array
(
[match_all] => Array
(
)
)
[filter] => Array
(
[and] => Array
(
[0] => Array
(
[term] => Array
(
[post_type.raw] => listing
)
)
)
)
)
Array
(
[post_type] => listing
[posts_per_page] => 54
[post_status] => publish
[meta_query] => Array
(
[relation] => AND
[0] => Array
(
[relation] => AND
[0] => Array
(
[key] => _listing_number_bedrooms
[type] => numeric
[compare] => >=
[value] => 5
)
[1] => Array
(
[key] => _listing_number_total_bathrooms
[type] => numeric
[compare] => >=
[value] => 3
)
[2] => Array
(
[key] => _listing_listing_class
[compare] => IN
[value] => Array
(
[0] => RE_1
)
)
[3] => Array
(
[key] => _listing_status
[compare] => IN
[value] => Array
(
[0] => Active
)
)
)
[1] => Array
(
[relation] => OR
[0] => Array
(
[key] => _listing_city
[compare] => IN
[value] => Array
(
[0] => PELHAM
)
)
)
)
[order] => DESC
[orderby] => meta_value_num
[meta_key] => _listing_price
[ep_integrate] => 1
[paged] => 1
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment