Jun Ohtani
0955c127c0
Rest: Add json in request body to scroll, clear scroll, and analyze API
...
Change analyze.asciidoc and scroll.asciidoc
Add json support to Analyze and Scroll, and clear scrollAPI
Add rest-api-spec/test
Closes #5866
2015-04-22 17:53:20 +09:00
Martijn van Groningen
145efbf6ea
Return missing (404) is a scroll_id is cleared that no longer exists.
...
Closes #5730
2014-05-12 09:43:56 +02:00
Alexander Reelsen
d356881664
[REST] Missing scroll id now returns 404
...
A bad/non-existing scroll ID used to return a 200, however a 404 might be more useful.
Also, this PR returns the right Exception (SearchContextMissingException) in the Java API.
Additionally: Added StatusToXContent interface and RestStatusToXContentListener listener, so
the appropriate RestStatus can be returned
Closes #5729
2014-05-05 17:37:26 +02:00
Martijn van Groningen
45a1b44759
Each search request should use a new InternalSearchResponse instance even in case when all shards return no hits.
...
The InternalSearchResponse may get modified afterwards, so a new instance required at all times.
2014-04-11 17:44:21 +07:00
Martijn van Groningen
01794bf8ea
Ignored clear scroll rest test
2014-04-11 13:47:41 +07:00
Martijn van Groningen
b400129597
The clear scroll apis now optionally accepts a scroll_id in it body.
...
Closes #5726
2014-04-11 10:39:59 +07:00