Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I am using Es 6.8 and since my return doc for a query is >10K so i switch to use the scoll query

the query i make in Jupyter notebook is

response = es.search(
        body=query_body,
        scroll='5m' ) 
scroll_id = response['_scroll_id'] 
print(scroll_id) 
while len(response['hits']['hits']):
        response = es.scroll(scroll_id=scroll_id, scroll='10m')

however, it shows error :

RequestError(400, 'no handler found for uri [/test/id/_search/scroll?scroll=10m] and method [POST]', 'no handler found for uri [/test/id/_search/scroll?scroll=10m] and method [POST]') ?

it seems my second query appear an error.

question from:https://stackoverflow.com/questions/65540896/how-to-perform-scoll-query-in-elasticsearch

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...