AI备忘录 - ES - python查询语句[转] 的评论
type: channel
link: https://www.aiuai.cn/aifarm1690.html
description: 原文：python操作elasticsearch - 2020.07.301. 基本查询from elasticsearch import Elasticsearch# 建立连接es = Ela...
items: AIHGF
items: bruceyang

AIHGF
type: item
date: 2022-04-23T21:48:18+08:00
description: 解析的时候期望是 StartObject，但是输入的却是 StartArray. 数据格式不对吧

bruceyang
type: item
date: 2022-04-21T16:43:48+08:00
description: body={ "query":{ "match_all":{} }, 'sort':{"_id": {"order":"desc"}}, 'search_after':[next_id], 'size': content_size } rt = es.search(index='lg-mysql-2022',body=body,doc_type='_doc') mdata = rt.get("hits").get("hits")

bruceyang
type: item
date: 2022-04-21T16:42:08+08:00
description: search_after 翻页按上面的操作 返回下面错误： (error:RequestError(400, u'parsing_exception', u'Expected [START_OBJECT] but found [START_ARRAY]')