Would you like give more details about the error?
If the index is not you need, you can give a index when you init the class.
Thanks, Xueliang
On Tue, Dec 08, 2020 at 04:02:01PM +0800, Cui Yili wrote:
Signed-off-by: cuiyili 2268260388@qq.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 3827ea8..c1342c5 100644 --- a/lib/es_query.rb +++ b/lib/es_query.rb @@ -31,7 +31,7 @@ class ESQuery } }, size: size }
- @client.search index: 'jobs*', body: query
@client.search index: @index << '*', body: query end
def traverse_field(size)
-- 2.23.0