Skip to content

Commit

Permalink
Combine MatchConditions and SearchRequestOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Apr 17, 2020
1 parent 9b5aad3 commit 3653c4c
Show file tree
Hide file tree
Showing 6 changed files with 291 additions and 219 deletions.
1 change: 1 addition & 0 deletions sdk/search/Azure.Search.Documents/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Breaking Changes

- Removed constructor from `SynonymMap` with `IEnumerable<string>` parameter.
- Combined `MatchConditions` and `SearchRequestOptions` into `SearchConditionalOptions`.

## 1.0.0-preview.2 (2020-04-06)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Azure.Search.Documents
{
/// <summary>
/// Options to customize Search service operations conditioned on <see cref="IfMatch"/> or <see cref="IfNoneMatch"/> ETags.
/// </summary>
public class SearchConditionalOptions : SearchRequestOptions
{
/// <summary>
/// Optionally limit requests to resources that have a matching ETag.
/// </summary>
public ETag? IfMatch { get; set; }

/// <summary>
/// Optionally limit requests to resources that do not match the ETag.
/// </summary>
public ETag? IfNoneMatch { get; set; }
}
}
Loading

0 comments on commit 3653c4c

Please sign in to comment.