Created
September 17, 2013 14:29
-
-
Save dmregister/6595079 to your computer and use it in GitHub Desktop.
This is passed to a ZF2 http client then set as raw body after it is json_encoded.
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
| $search = array( | |
| 'filtered' => array( | |
| 'query' => array( | |
| 'match_all' => array() | |
| ), | |
| 'filter' => array( | |
| 'geo_distance' => array( | |
| 'distance' => '1mi', | |
| 'pin.location' => array( | |
| 'lat' => '25.756205', | |
| 'lon' => '-80.205362' | |
| ) | |
| ) | |
| ) | |
| ) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment