Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1109,10 +1109,10 @@ public PathHierarchyTokenizerV2(string name) : base (default(string)) { }
public partial class PatternAnalyzer : Azure.Search.Documents.Models.Analyzer
{
public PatternAnalyzer(string name) : base (default(string)) { }
public Azure.Search.Documents.Models.RegexFlags? Flags { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.RegexFlags> Flags { get { throw null; } }
public bool? LowerCaseTerms { get { throw null; } set { } }
public string Pattern { get { throw null; } set { } }
public System.Collections.Generic.IList<string> Stopwords { get { throw null; } set { } }
public System.Collections.Generic.IList<string> Stopwords { get { throw null; } }
}
public partial class PatternCaptureTokenFilter : Azure.Search.Documents.Models.TokenFilter
{
Expand All @@ -1135,7 +1135,7 @@ public PatternReplaceTokenFilter(string name, string pattern, string replacement
public partial class PatternTokenizer : Azure.Search.Documents.Models.Tokenizer
{
public PatternTokenizer(string name) : base (default(string)) { }
public Azure.Search.Documents.Models.RegexFlags? Flags { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.RegexFlags> Flags { get { throw null; } }
public int? Group { get { throw null; } set { } }
public string Pattern { get { throw null; } set { } }
}
Expand Down Expand Up @@ -1268,18 +1268,18 @@ public partial class SearchIndex
{
public SearchIndex(string name) { }
public SearchIndex(string name, System.Collections.Generic.IEnumerable<Azure.Search.Documents.Models.SearchField> fields) { }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.Analyzer> Analyzers { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.CharFilter> CharFilters { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.Analyzer> Analyzers { get { throw null; } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.CharFilter> CharFilters { get { throw null; } }
public Azure.Search.Documents.Models.CorsOptions CorsOptions { get { throw null; } set { } }
public string DefaultScoringProfile { get { throw null; } set { } }
public Azure.Search.Documents.Models.EncryptionKey EncryptionKey { get { throw null; } set { } }
public string ETag { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.SearchField> Fields { get { throw null; } }
public string Name { get { throw null; } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.ScoringProfile> ScoringProfiles { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.Suggester> Suggesters { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.TokenFilter> TokenFilters { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.Tokenizer> Tokenizers { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.ScoringProfile> ScoringProfiles { get { throw null; } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.Suggester> Suggesters { get { throw null; } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.TokenFilter> TokenFilters { get { throw null; } }
public System.Collections.Generic.IList<Azure.Search.Documents.Models.Tokenizer> Tokenizers { get { throw null; } }
}
public partial class SearchIndexer
{
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions sdk/search/Azure.Search.Documents/src/Models/PatternAnalyzer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections.Generic;
using Azure.Core;

namespace Azure.Search.Documents.Models
{
public partial class PatternAnalyzer
{
[CodeGenMember("flags")]
private string FlagsInternal
{
get => string.Join("|", Flags);
set
{
Flags.Clear();

if (!string.IsNullOrEmpty(value))
{
string[] values = value.Split('|');
for (int i = 0; i < values.Length; ++i)
{
Flags.Add(new RegexFlags(values[i]));
}
}
}
}

/// <summary>
/// Gets regular expression flags for <see cref="Pattern"/>.
/// </summary>
public IList<RegexFlags> Flags { get; } = new List<RegexFlags>();

/// <summary>
/// Gets a list of stopwords.
/// </summary>
[CodeGenMember(Initialize = true, EmptyAsUndefined = true)]
public IList<string> Stopwords { get; }
}
}
35 changes: 35 additions & 0 deletions sdk/search/Azure.Search.Documents/src/Models/PatternTokenizer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Collections.Generic;
using Azure.Core;

namespace Azure.Search.Documents.Models
{
public partial class PatternTokenizer
{
[CodeGenMember("flags")]
private string FlagsInternal
{
get => string.Join("|", Flags);
set
{
Flags.Clear();

if (!string.IsNullOrEmpty(value))
{
string[] values = value.Split('|');
for (int i = 0; i < values.Length; ++i)
{
Flags.Add(new RegexFlags(values[i]));
}
}
}
}

/// <summary>
/// Regular expression flags for <see cref="Pattern"/>.
/// </summary>
public IList<RegexFlags> Flags { get; } = new List<RegexFlags>();
}
}
Loading