mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
- set default operator to AND, not OR
This commit is contained in:
parent
abc84f3218
commit
f25e50c557
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,8 @@ class LogStash::Web::ElasticSearch
|
||||||
],
|
],
|
||||||
"query" => {
|
"query" => {
|
||||||
"query_string" => {
|
"query_string" => {
|
||||||
"query" => params[:q]
|
"query" => params[:q],
|
||||||
|
"default_operator" => "AND"
|
||||||
} # query_string
|
} # query_string
|
||||||
}, # query
|
}, # query
|
||||||
"facets" => {
|
"facets" => {
|
||||||
|
@ -44,6 +45,7 @@ class LogStash::Web::ElasticSearch
|
||||||
data["duration"] = Time.now - start_time
|
data["duration"] = Time.now - start_time
|
||||||
@logger.info(["Got search results",
|
@logger.info(["Got search results",
|
||||||
{ :query => params[:q], :duration => data["duration"]}])
|
{ :query => params[:q], :duration => data["duration"]}])
|
||||||
|
@logger.info(data)
|
||||||
if req.response_header.status != 200
|
if req.response_header.status != 200
|
||||||
@error = data["error"]
|
@error = data["error"]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue