mutli -> multi
Signed-off-by: Wang Yong <wangyong0117(a)qq.com>
---
lib/es_query.rb | 6 +++---
src/lib/web_backend.rb | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/es_query.rb b/lib/es_query.rb
index a250eaf..e026069 100644
--- a/lib/es_query.rb
+++ b/lib/es_query.rb
@@ -23,7 +23,7 @@ class ESQuery
warn 'empty filter!'
exit
end
- query_fields = build_mutli_field_subquery_body items
+ query_fields = build_multi_field_subquery_body items
query = {
query: {
bool: {
@@ -72,8 +72,8 @@ end
# }
# }
# items['range'] = range
-# build_mutli_field_subquery_body(items)
-def build_mutli_field_subquery_body(items)
+# build_multi_field_subquery_body(items)
+def build_multi_field_subquery_body(items)
query_fields = []
items.each do |key, value|
if value.is_a?(Array)
diff --git a/src/lib/web_backend.rb b/src/lib/web_backend.rb
index 014600a..94883a3 100644
--- a/src/lib/web_backend.rb
+++ b/src/lib/web_backend.rb
@@ -163,7 +163,7 @@ def do_get_groups_matrices(query, dimension, total, size, from)
end
def get_groups_matrices(conditions, dimension, must, size, from)
- must += build_mutli_field_subquery_body(conditions)
+ must += build_multi_field_subquery_body(conditions)
count_query = { query: { bool: { must: must } } }
total = es_count(count_query)
return {} if total < 1
--
2.23.0