Created
September 7, 2016 20:37
-
-
Save solepixel/244ef9b493c00bc492f8434970532d27 to your computer and use it in GitHub Desktop.
Simpler Arguments for ElasticPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
( | |
[bool] => Array | |
( | |
[must] => Array | |
( | |
[0] => Array | |
( | |
[bool] => Array | |
( | |
[must] => Array | |
( | |
[0] => Array | |
( | |
[range] => Array | |
( | |
[meta._listing_number_bedrooms.long] => Array | |
( | |
[gte] => 5 | |
) | |
) | |
) | |
) | |
) | |
) | |
[1] => Array | |
( | |
[bool] => Array | |
( | |
[must] => Array | |
( | |
[0] => Array | |
( | |
[range] => Array | |
( | |
[meta._listing_number_total_bathrooms.long] => Array | |
( | |
[gte] => 3 | |
) | |
) | |
) | |
) | |
) | |
) | |
[2] => Array | |
( | |
[terms] => Array | |
( | |
[meta._listing_listing_class.raw] => Array | |
( | |
[0] => RE_1 | |
) | |
) | |
) | |
[3] => Array | |
( | |
[terms] => Array | |
( | |
[meta._listing_status.raw] => Array | |
( | |
[0] => Active | |
) | |
) | |
) | |
) | |
) | |
) | |
[1] => Array | |
( | |
[term] => Array | |
( | |
[post_type.raw] => listing | |
) | |
) | |
) | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array | |
( | |
[post_type] => listing | |
[posts_per_page] => 54 | |
[post_status] => publish | |
[meta_query] => 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 | |
) | |
) | |
) | |
[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