@@ -20,33 +20,6 @@ public interface IElasticClient
2020 /// <returns>An IObservable you can subscribe to to listen to the progress of the reindexation process</returns>
2121 IObservable < IReindexResponse < T > > Reindex < T > ( Func < ReindexDescriptor < T > , ReindexDescriptor < T > > reindexSelector )
2222 where T : class ;
23-
24- /// <summary>
25- /// A search request can be scrolled by specifying the scroll parameter.
26- /// <para>The scroll parameter is a time value parameter (for example: scroll=5m),
27- /// indicating for how long the nodes that participate in the search will maintain relevant resources in
28- /// order to continue and support it.</para><para>
29- /// This is very similar in its idea to opening a cursor against a database.</para>
30- /// <para> </para><para>http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html</para>
31- /// </summary>
32- /// <typeparam name="T">The type that represents the result hits</typeparam>
33- /// <param name="scrollSelector">A descriptor that describes the scroll operation</param>
34- /// <returns>A query response holding T hits as well as the ScrollId for the next scroll operation</returns>
35- ISearchResponse < T > Scroll < T > ( Func < ScrollDescriptor < T > , ScrollDescriptor < T > > scrollSelector )
36- where T : class ;
37-
38- /// <summary>
39- /// A search request can be scrolled by specifying the scroll parameter.
40- /// <para>The scroll parameter is a time value parameter (for example: scroll=5m),
41- /// indicating for how long the nodes that participate in the search will maintain relevant resources in
42- /// order to continue and support it.</para><para>
43- /// This is very similar in its idea to opening a cursor against a database.</para>
44- /// </summary>
45- /// <typeparam name="T">The type that represents the result hits</typeparam>
46- /// <param name="scrollSelector">A descriptor that describes the scroll operation</param>
47- /// <returns>A query response holding T hits as well as the ScrollId for the next scroll operation</returns>
48- Task < ISearchResponse < T > > ScrollAsync < T > ( Func < ScrollDescriptor < T > , ScrollDescriptor < T > > scrollSelector )
49- where T : class ;
5023
5124 /// <summary>
5225 /// The update API allows to update a document based on a script provided.
@@ -990,5 +963,11 @@ Task<IBulkResponse> IndexManyAsync<T>(IEnumerable<T> objects, string index = nul
990963 /// </summary>
991964 /// <param name="selector">An optional descriptor that further describes the status operation, i.e limiting it to certain indices</param>
992965 Task < IStatusResponse > StatusAsync ( Func < IndicesStatusDescriptor , IndicesStatusDescriptor > selector = null ) ;
966+
967+ /// <inheritdoc />
968+ IEmptyResponse ClearScroll ( Func < ClearScrollDescriptor , ClearScrollDescriptor > clearScrollSelector ) ;
969+
970+ /// <inheritdoc />
971+ Task < IEmptyResponse > ClearScrollAsync ( Func < ClearScrollDescriptor , ClearScrollDescriptor > clearScrollSelector ) ;
993972 }
994973}
0 commit comments