Possible to scroll call ES v. 1.7 - how? I get errors

Can someone help me what to do to call ES v. 1.7 with _scroll_id, please?

According to the documentation it should be possible.

Currently, I get one of these errors trying to pass _scroll_id in the payload:

I write in python although that should not be necessary to take that into account to help.


{'error': 'SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[4IqWaNXkR4adj-gUBjhPmg][sagsindeks_v4][0]: RemoteTransportException[[eu-north-1c-i-0a96f238a819c41ca][inet[/172.31.7.36:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [_na_]]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[4IqWaNXkR4adj-gUBjhPmg][sagsindeks_v4][1]: RemoteTransportException[[eu-north-1c-i-0a96f238a819c41ca][inet[/172.31.7.36:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][1]: from[-1],size[-1]: Parse Failure [Failed to parse source [_na_]]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[4IqWaNXkR4adj-gUBjhPmg][sagsindeks_v4][2]: RemoteTransportException[[eu-north-1c-i-0a96f238a819c41ca][inet[/172.31.7.36:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][2]: from[-1],size[-1]: Parse Failure [Failed to parse source [_na_]]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[4IqWaNXkR4adj-gUBjhPmg][sagsindeks_v4][3]: RemoteTransportException[[eu-north-1c-i-0a96f238a819c41ca][inet[/172.31.7.36:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][3]: from[-1],size[-1]: Parse Failure [Failed to parse source [_na_]]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[4IqWaNXkR4adj-gUBjhPmg][sagsindeks_v4][4]: RemoteTransportException[[eu-north-1c-i-0a96f238a819c41ca][inet[/172.31.7.36:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][4]: from[-1],size[-1]: Parse Failure [Failed to parse source [_na_]]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }{[KjGjXnZuTvuTDIToI1WTWw][sagsindeks_v4][5]: SearchParseException[[sagsindeks_v4][5]: from[-1],size[-1]: Parse Failure [Failed to parse source [_na_]]]; nested: ElasticsearchParseException[Failed to derive xcontent]; }]', 'status': 400}


{'error': 'SearchPhaseExecutionException[Failed to execute phase [query], all shards failed; shardFailures {[Xe5FZ51XT2O3NDuI6rDg-Q][sagsindeks_v4][0]: SearchParseException[[sagsindeks_v4][0]: from[-1],size[2500]: Parse Failure [Failed to parse source [{"_source": {"include": ["sagsnummer"]}, "size": "2500", "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7Njs1OTE2MjM4OjRJcVdhTlhrUjRhZGotZ1VCamhQbWc7NTkyNjcxNjpYZTVGWjUxWFQyTzNORHVJNnJEZy1ROzU5MTYyMzc6NElxV2FOWGtSNGFkai1nVUJqaFBtZzs1OTI2NzE3OlhlNUZaNTFYVDJPM05EdUk2ckRnLVE7NTkxNjIzOTo0SXFXYU5Ya1I0YWRqLWdVQmpoUG1nOzU5MjY3MTg6WGU1Rlo1MVhUMk8zTkR1STZyRGctUTswOw=="}]]]; nested: SearchParseException[[sagsindeks_v4][0]: from[-1],size[2500]: Parse Failure [No parser for element [_scroll_id]]]; }{[KjGjXnZuTvuTDIToI1WTWw][sagsindeks_v4][1]: RemoteTransportException[[eu-north-1b-i-05ccbc21e1eaec9a9][inet[/172.31.7.20:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][1]: from[-1],size[2500]: Parse Failure [Failed to parse source [{"_source": {"include": ["sagsnummer"]}, "size": "2500", "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7Njs1OTE2MjM4OjRJcVdhTlhrUjRhZGotZ1VCamhQbWc7NTkyNjcxNjpYZTVGWjUxWFQyTzNORHVJNnJEZy1ROzU5MTYyMzc6NElxV2FOWGtSNGFkai1nVUJqaFBtZzs1OTI2NzE3OlhlNUZaNTFYVDJPM05EdUk2ckRnLVE7NTkxNjIzOTo0SXFXYU5Ya1I0YWRqLWdVQmpoUG1nOzU5MjY3MTg6WGU1Rlo1MVhUMk8zTkR1STZyRGctUTswOw=="}]]]; nested: SearchParseException[[sagsindeks_v4][1]: from[-1],size[2500]: Parse Failure [No parser for element [_scroll_id]]]; }{[KjGjXnZuTvuTDIToI1WTWw][sagsindeks_v4][2]: RemoteTransportException[[eu-north-1b-i-05ccbc21e1eaec9a9][inet[/172.31.7.20:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][2]: from[-1],size[2500]: Parse Failure [Failed to parse source [{"_source": {"include": ["sagsnummer"]}, "size": "2500", "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7Njs1OTE2MjM4OjRJcVdhTlhrUjRhZGotZ1VCamhQbWc7NTkyNjcxNjpYZTVGWjUxWFQyTzNORHVJNnJEZy1ROzU5MTYyMzc6NElxV2FOWGtSNGFkai1nVUJqaFBtZzs1OTI2NzE3OlhlNUZaNTFYVDJPM05EdUk2ckRnLVE7NTkxNjIzOTo0SXFXYU5Ya1I0YWRqLWdVQmpoUG1nOzU5MjY3MTg6WGU1Rlo1MVhUMk8zTkR1STZyRGctUTswOw=="}]]]; nested: SearchParseException[[sagsindeks_v4][2]: from[-1],size[2500]: Parse Failure [No parser for element [_scroll_id]]]; }{[KjGjXnZuTvuTDIToI1WTWw][sagsindeks_v4][3]: RemoteTransportException[[eu-north-1b-i-05ccbc21e1eaec9a9][inet[/172.31.7.20:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][3]: from[-1],size[2500]: Parse Failure [Failed to parse source [{"_source": {"include": ["sagsnummer"]}, "size": "2500", "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7Njs1OTE2MjM4OjRJcVdhTlhrUjRhZGotZ1VCamhQbWc7NTkyNjcxNjpYZTVGWjUxWFQyTzNORHVJNnJEZy1ROzU5MTYyMzc6NElxV2FOWGtSNGFkai1nVUJqaFBtZzs1OTI2NzE3OlhlNUZaNTFYVDJPM05EdUk2ckRnLVE7NTkxNjIzOTo0SXFXYU5Ya1I0YWRqLWdVQmpoUG1nOzU5MjY3MTg6WGU1Rlo1MVhUMk8zTkR1STZyRGctUTswOw=="}]]]; nested: SearchParseException[[sagsindeks_v4][3]: from[-1],size[2500]: Parse Failure [No parser for element [_scroll_id]]]; }{[KjGjXnZuTvuTDIToI1WTWw][sagsindeks_v4][4]: RemoteTransportException[[eu-north-1b-i-05ccbc21e1eaec9a9][inet[/172.31.7.20:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][4]: from[-1],size[2500]: Parse Failure [Failed to parse source [{"_source": {"include": ["sagsnummer"]}, "size": "2500", "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7Njs1OTE2MjM4OjRJcVdhTlhrUjRhZGotZ1VCamhQbWc7NTkyNjcxNjpYZTVGWjUxWFQyTzNORHVJNnJEZy1ROzU5MTYyMzc6NElxV2FOWGtSNGFkai1nVUJqaFBtZzs1OTI2NzE3OlhlNUZaNTFYVDJPM05EdUk2ckRnLVE7NTkxNjIzOTo0SXFXYU5Ya1I0YWRqLWdVQmpoUG1nOzU5MjY3MTg6WGU1Rlo1MVhUMk8zTkR1STZyRGctUTswOw=="}]]]; nested: SearchParseException[[sagsindeks_v4][4]: from[-1],size[2500]: Parse Failure [No parser for element [_scroll_id]]]; }{[4IqWaNXkR4adj-gUBjhPmg][sagsindeks_v4][5]: RemoteTransportException[[eu-north-1c-i-0a96f238a819c41ca][inet[/172.31.7.36:9300]][indices:data/read/search[phase/query]]]; nested: SearchParseException[[sagsindeks_v4][5]: from[-1],size[2500]: Parse Failure [Failed to parse source [{"_source": {"include": ["sagsnummer"]}, "size": "2500", "_scroll_id": "cXVlcnlUaGVuRmV0Y2g7Njs1OTE2MjM4OjRJcVdhTlhrUjRhZGotZ1VCamhQbWc7NTkyNjcxNjpYZTVGWjUxWFQyTzNORHVJNnJEZy1ROzU5MTYyMzc6NElxV2FOWGtSNGFkai1nVUJqaFBtZzs1OTI2NzE3OlhlNUZaNTFYVDJPM05EdUk2ckRnLVE7NTkxNjIzOTo0SXFXYU5Ya1I0YWRqLWdVQmpoUG1nOzU5MjY3MTg6WGU1Rlo1MVhUMk8zTkR1STZyRGctUTswOw=="}]]]; nested: SearchParseException[[sagsindeks_v4][5]: from[-1],size[2500]: Parse Failure [No parser for element [_scroll_id]]]; }]', 'status': 400}

it seemed to work when specifying the _scroll_id in the query string e.g. inserting "?scroll_id=" with the returned id afterwards.

in other words, i may have failed to correctly pass the _scroll_id through the request body. i inserted it in the payload (together with query: include: _source and size: in json). perhaps it should not have been passed within the payload but rather below it.

1.7 is extremely old and you need to upgrade as a matter of urgency, see EOL.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.