Using from/size in Elasticsearch - “using [from] is not allowed in a scroll context” Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceSolr vs. ElasticSearchElasticsearch aggregate function error on laravelElasticsearch date decay function, RailsHow to do source filtering on Nested FieldsElasticsearch 6.x not allowing indexing of escaped json stringsElasticsearch time-range query and dataElasticsearch must combined with mustnot fails parsingElasticSearch action_request_validation_exceptionRequest does not support ElasticSearch 6.4.3 When Using POST _CountElasticsearch reply for expired scroll context
Who can trigger ship-wide alerts in Star Trek?
Unable to start mainnet node docker container
How do you clear the ApexPages.getMessages() collection in a test?
How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time
Does a C shift expression have unsigned type? Why would Splint warn about a right-shift?
How to retrograde a note sequence in Finale?
Should you tell Jews they are breaking a commandment?
Slither Like a Snake
Single author papers against my advisor's will?
How should I respond to a player wanting to catch a sword between their hands?
Array/tabular for long multiplication
Autumning in love
What are the performance impacts of 'functional' Rust?
Mortgage adviser recommends a longer term than necessary combined with overpayments
What did Darwin mean by 'squib' here?
Complexity of many constant time steps with occasional logarithmic steps
Simulating Exploding Dice
Interesting examples of non-locally compact topological groups
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
I'm having difficulty getting my players to do stuff in a sandbox campaign
Fishing simulator
What LEGO pieces have "real-world" functionality?
Windows 10: How to Lock (not sleep) laptop on lid close?
3 doors, three guards, one stone
Using from/size in Elasticsearch - “using [from] is not allowed in a scroll context”
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceSolr vs. ElasticSearchElasticsearch aggregate function error on laravelElasticsearch date decay function, RailsHow to do source filtering on Nested FieldsElasticsearch 6.x not allowing indexing of escaped json stringsElasticsearch time-range query and dataElasticsearch must combined with mustnot fails parsingElasticSearch action_request_validation_exceptionRequest does not support ElasticSearch 6.4.3 When Using POST _CountElasticsearch reply for expired scroll context
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a quite standard query that seems to be using the scroll API - how do I change it to use the from/size (non-scroll) API?
My query:
"query":
"bool":
"should": [
"match": "object.id": query ,
"match": "object.name": query ,
"match": "object.content": query ,
"match": "object.type": query
]
,
"_source": "object.*",
"from" : from_result,
"size": RESULTS_PER_PAGE
The error returned is:
b'"error": "root_cause": ["type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;"], "type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;", "status": 400'
add a comment |
I have a quite standard query that seems to be using the scroll API - how do I change it to use the from/size (non-scroll) API?
My query:
"query":
"bool":
"should": [
"match": "object.id": query ,
"match": "object.name": query ,
"match": "object.content": query ,
"match": "object.type": query
]
,
"_source": "object.*",
"from" : from_result,
"size": RESULTS_PER_PAGE
The error returned is:
b'"error": "root_cause": ["type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;"], "type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;", "status": 400'
Which URL are you hitting?
– Val
Mar 8 at 15:12
localhost:9200/index_name/_search
– Will Taylor
Mar 8 at 15:14
do you have any query string parameters that you're appending? likescroll=1mor something similar?
– Val
Mar 8 at 15:20
Ah yes, I had some middleware adding 'scroll': '15s'. Thanks
– Will Taylor
Mar 8 at 15:32
Cool, glad you figured out
– Val
Mar 8 at 15:42
add a comment |
I have a quite standard query that seems to be using the scroll API - how do I change it to use the from/size (non-scroll) API?
My query:
"query":
"bool":
"should": [
"match": "object.id": query ,
"match": "object.name": query ,
"match": "object.content": query ,
"match": "object.type": query
]
,
"_source": "object.*",
"from" : from_result,
"size": RESULTS_PER_PAGE
The error returned is:
b'"error": "root_cause": ["type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;"], "type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;", "status": 400'
I have a quite standard query that seems to be using the scroll API - how do I change it to use the from/size (non-scroll) API?
My query:
"query":
"bool":
"should": [
"match": "object.id": query ,
"match": "object.name": query ,
"match": "object.content": query ,
"match": "object.type": query
]
,
"_source": "object.*",
"from" : from_result,
"size": RESULTS_PER_PAGE
The error returned is:
b'"error": "root_cause": ["type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;"], "type": "action_request_validation_exception", "reason": "Validation Failed: 1: using [from] is not allowed in a scroll context;", "status": 400'
asked Mar 8 at 15:00
Will TaylorWill Taylor
78611025
78611025
Which URL are you hitting?
– Val
Mar 8 at 15:12
localhost:9200/index_name/_search
– Will Taylor
Mar 8 at 15:14
do you have any query string parameters that you're appending? likescroll=1mor something similar?
– Val
Mar 8 at 15:20
Ah yes, I had some middleware adding 'scroll': '15s'. Thanks
– Will Taylor
Mar 8 at 15:32
Cool, glad you figured out
– Val
Mar 8 at 15:42
add a comment |
Which URL are you hitting?
– Val
Mar 8 at 15:12
localhost:9200/index_name/_search
– Will Taylor
Mar 8 at 15:14
do you have any query string parameters that you're appending? likescroll=1mor something similar?
– Val
Mar 8 at 15:20
Ah yes, I had some middleware adding 'scroll': '15s'. Thanks
– Will Taylor
Mar 8 at 15:32
Cool, glad you figured out
– Val
Mar 8 at 15:42
Which URL are you hitting?
– Val
Mar 8 at 15:12
Which URL are you hitting?
– Val
Mar 8 at 15:12
localhost:9200/index_name/_search
– Will Taylor
Mar 8 at 15:14
localhost:9200/index_name/_search
– Will Taylor
Mar 8 at 15:14
do you have any query string parameters that you're appending? like
scroll=1m or something similar?– Val
Mar 8 at 15:20
do you have any query string parameters that you're appending? like
scroll=1m or something similar?– Val
Mar 8 at 15:20
Ah yes, I had some middleware adding 'scroll': '15s'. Thanks
– Will Taylor
Mar 8 at 15:32
Ah yes, I had some middleware adding 'scroll': '15s'. Thanks
– Will Taylor
Mar 8 at 15:32
Cool, glad you figured out
– Val
Mar 8 at 15:42
Cool, glad you figured out
– Val
Mar 8 at 15:42
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065847%2fusing-from-size-in-elasticsearch-using-from-is-not-allowed-in-a-scroll-cont%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55065847%2fusing-from-size-in-elasticsearch-using-from-is-not-allowed-in-a-scroll-cont%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Which URL are you hitting?
– Val
Mar 8 at 15:12
localhost:9200/index_name/_search
– Will Taylor
Mar 8 at 15:14
do you have any query string parameters that you're appending? like
scroll=1mor something similar?– Val
Mar 8 at 15:20
Ah yes, I had some middleware adding 'scroll': '15s'. Thanks
– Will Taylor
Mar 8 at 15:32
Cool, glad you figured out
– Val
Mar 8 at 15:42