@@ -3274,20 +3274,22 @@ private void OnFederatedQueryNoticesResponse(RESTConnector.Request req, RESTConn
3274
3274
/// <param name="callback">The callback function that is invoked when the operation completes.</param>
3275
3275
/// <param name="environmentId">The ID of the environment.</param>
3276
3276
/// <param name="collectionId">The ID of the collection.</param>
3277
+ /// <param name="prefix">The prefix to use for autocompletion. For example, the prefix `Ho` could autocomplete
3278
+ /// to `Hot`, `Housing`, or `How do I upgrade`. Possible completions are.</param>
3277
3279
/// <param name="field">The field in the result documents that autocompletion suggestions are identified from.
3278
3280
/// (optional)</param>
3279
- /// <param name="prefix">The prefix to use for autocompletion. For example, the prefix `Ho` could autocomplete
3280
- /// to `Hot`, `Housing`, or `How do I upgrade`. Possible completions are. (optional)</param>
3281
3281
/// <param name="count">The number of autocompletion suggestions to return. (optional)</param>
3282
3282
/// <returns><see cref="Completions" />Completions</returns>
3283
- public bool GetAutocompletion ( Callback < Completions > callback , string environmentId , string collectionId , string field = null , string prefix = null , long ? count = null )
3283
+ public bool GetAutocompletion ( Callback < Completions > callback , string environmentId , string collectionId , string prefix , string field = null , long ? count = null )
3284
3284
{
3285
3285
if ( callback == null )
3286
3286
throw new ArgumentNullException ( "`callback` is required for `GetAutocompletion`" ) ;
3287
3287
if ( string . IsNullOrEmpty ( environmentId ) )
3288
3288
throw new ArgumentNullException ( "`environmentId` is required for `GetAutocompletion`" ) ;
3289
3289
if ( string . IsNullOrEmpty ( collectionId ) )
3290
3290
throw new ArgumentNullException ( "`collectionId` is required for `GetAutocompletion`" ) ;
3291
+ if ( string . IsNullOrEmpty ( prefix ) )
3292
+ throw new ArgumentNullException ( "`prefix` is required for `GetAutocompletion`" ) ;
3291
3293
3292
3294
RequestObject < Completions > req = new RequestObject < Completions >
3293
3295
{
@@ -3309,14 +3311,14 @@ public bool GetAutocompletion(Callback<Completions> callback, string environment
3309
3311
}
3310
3312
3311
3313
req . Parameters [ "version" ] = VersionDate ;
3312
- if ( ! string . IsNullOrEmpty ( field ) )
3313
- {
3314
- req . Parameters [ "field" ] = field ;
3315
- }
3316
3314
if ( ! string . IsNullOrEmpty ( prefix ) )
3317
3315
{
3318
3316
req . Parameters [ "prefix" ] = prefix ;
3319
3317
}
3318
+ if ( ! string . IsNullOrEmpty ( field ) )
3319
+ {
3320
+ req . Parameters [ "field" ] = field ;
3321
+ }
3320
3322
if ( count != null )
3321
3323
{
3322
3324
req . Parameters [ "count" ] = count ;
0 commit comments