[Why] /home/lwt/work3/compass-ci/lib/es_query.rb:34:in `multi_field_query': can't modify frozen String (FrozenError)
Signed-off-by: Lu Weitao luweitaobe@163.com --- lib/es_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/es_query.rb b/lib/es_query.rb index c1342c5..a250eaf 100644 --- a/lib/es_query.rb +++ b/lib/es_query.rb @@ -31,7 +31,7 @@ class ESQuery } }, size: size } - @client.search index: @index << '*', body: query + @client.search index: @index + '*', body: query end
def traverse_field(size)