Skip to content

Commit faeee5e

Browse files
committed
fix #318 great edgecase hitting the GET url length limit
1 parent 8c511c8 commit faeee5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Nest/ElasticClient-Scroll.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ public IQueryResponse<T> Scroll<T>(string scrollTime, string scrollId) where T :
2222
scrollId = Uri.EscapeDataString(scrollId);
2323
scrollTime = Uri.EscapeDataString(scrollTime);
2424

25-
var path = "_search/scroll?scroll={0}&scroll_id={1}".F(scrollTime, scrollId);
25+
var path = "_search/scroll?scroll={0}".F(scrollTime);
2626

27-
ConnectionStatus status = this.Connection.GetSync(path);
27+
ConnectionStatus status = this.Connection.PostSync(path, scrollId);
2828
var r = this.ToParsedResponse<QueryResponse<T>>(status
2929
, extraConverters: new[] { new ConcreteTypeConverter(typeof(T), (d, h) => typeof(T)) }
3030
);

0 commit comments

Comments
 (0)