Skip to content

Commit

Permalink
remove type:phrase from capme ES query
Browse files Browse the repository at this point in the history
  • Loading branch information
dougburks committed Jan 17, 2018
1 parent 7f3a5ea commit 38af97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/www/so/capme/.inc/callback-elastic.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ function elastic_command($elastic_host, $elastic_port, $type, $bro_query, $st_es
}
}

$elastic_command = "/usr/bin/curl -XGET '$elastic_host:$elastic_port/*:logstash-*/_search?' -H 'Content-Type: application/json' -d'{\"query\": {\"match\": {\"_id\": {\"query\": \"$esid\",\"type\": \"phrase\"}}}}' 2>/dev/null";
$elastic_command = "/usr/bin/curl -XGET '$elastic_host:$elastic_port/*:logstash-*/_search?' -H 'Content-Type: application/json' -d'{\"query\": {\"match\": {\"_id\": {\"query\": \"$esid\"}}}}' 2>/dev/null";
$elastic_response = shell_exec($elastic_command);

// Try to decode the response as JSON.
Expand Down

0 comments on commit 38af97e

Please sign in to comment.