Commit 98a2275aadc6255e3d483603d7ed23230f533a9e
Committed by
Macartur Sousa
1 parent
84579714
Exists in
elasticsearch_sort
Adding visible filter
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
plugins/elasticsearch/controllers/elasticsearch_plugin_controller.rb
... | ... | @@ -37,9 +37,13 @@ class ElasticsearchPluginController < ApplicationController |
37 | 37 | query: { |
38 | 38 | multi_match: { |
39 | 39 | query: text, |
40 | - fields: fields | |
40 | + fields: fields, | |
41 | + operator: "and" | |
41 | 42 | } |
42 | - } | |
43 | + }, | |
44 | + filter: { | |
45 | + term: {visible: "true"} | |
46 | + } | |
43 | 47 | } |
44 | 48 | end |
45 | 49 | query | ... | ... |