Skip to content

Instantly share code, notes, and snippets.

@solepixel
Created September 7, 2016 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save solepixel/6c3b5b4ce55bfb25c4ef2c0734ce88bc to your computer and use it in GitHub Desktop.
Save solepixel/6c3b5b4ce55bfb25c4ef2c0734ce88bc 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