Skip to content

Instantly share code, notes, and snippets.

@dmregister
Created September 17, 2013 14:29
Show Gist options
  • Save dmregister/6595079 to your computer and use it in GitHub Desktop.
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.
$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