Skip to content

Instantly share code, notes, and snippets.

@egulhan
Created July 15, 2014 10:31
Show Gist options
  • Select an option

  • Save egulhan/08ec88bec8e4594c3e64 to your computer and use it in GitHub Desktop.

Select an option

Save egulhan/08ec88bec8e4594c3e64 to your computer and use it in GitHub Desktop.
Elastic Search quey examples
$filteredQuery=array(
'filtered'=>array(
'query'=>array(
'query_string'=>array('query'=>'enveloperecipients:*@domain.com* AND result:0 AND NOT remoteip:10.1.1.*')
),
'filter'=>array(
'range'=>array(
'recvtime'=>array('from'=>'2013-07-01','to'=>'2013-07-31')
)
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment