mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -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_string" => {
|
||||
"query" => params[:q]
|
||||
"query" => params[:q],
|
||||
"default_operator" => "AND"
|
||||
} # query_string
|
||||
}, # query
|
||||
"facets" => {
|
||||
|
@ -44,6 +45,7 @@ class LogStash::Web::ElasticSearch
|
|||
data["duration"] = Time.now - start_time
|
||||
@logger.info(["Got search results",
|
||||
{ :query => params[:q], :duration => data["duration"]}])
|
||||
@logger.info(data)
|
||||
if req.response_header.status != 200
|
||||
@error = data["error"]
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue