Skip to content

Commit

Permalink
fix: removed azure prefix from enums
Browse files Browse the repository at this point in the history
  • Loading branch information
aochmann committed May 14, 2021
1 parent 7cd29c4 commit 8302aad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cogworks.AzureSearch.Enums
{
public enum AzureQueryType
public enum QueryType
{
Simple = 0,
Full = 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Cogworks.AzureSearch.Enums
{
public enum AzureSearchModeType
public enum SearchModeType
{
Any = 0,
All = 1
Expand Down
4 changes: 2 additions & 2 deletions src/Cogworks.AzureSearch/Mappers/ParametersMapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ internal static SearchOptions Map(SearchParameters searchParameters)
HighlightPreTag = searchParameters.HighlightPreTag,
IncludeTotalCount = searchParameters.IncludeTotalResultCount,
MinimumCoverage = searchParameters.MinimumCoverage,
QueryType = searchParameters.QueryType == AzureQueryType.Full
QueryType = searchParameters.QueryType == QueryType.Full
? SearchQueryType.Full
: SearchQueryType.Simple,
ScoringProfile = searchParameters.ScoringProfile,
SearchMode = searchParameters.SearchMode == AzureSearchModeType.Any
SearchMode = searchParameters.SearchMode == SearchModeType.Any
? SearchMode.Any
: SearchMode.All,
Skip = searchParameters.Skip,
Expand Down
4 changes: 2 additions & 2 deletions src/Cogworks.AzureSearch/Models/SearchParameters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public class SearchParameters

public IEnumerable<string> OrderBy { get; set; }

public AzureQueryType QueryType { get; set; }
public QueryType QueryType { get; set; }

public string ScoringProfile { get; set; }

public IEnumerable<string> SearchFields { get; set; }

public AzureSearchModeType SearchMode { get; set; }
public SearchModeType SearchMode { get; set; }

public IEnumerable<string> Select { get; set; }

Expand Down

0 comments on commit 8302aad

Please sign in to comment.