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
2 changes: 1 addition & 1 deletion sdk/search/Azure.Search.Documents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ SearchIndex index = new SearchIndex("hotels")
{
new SimpleField("hotelId", SearchFieldDataType.String) { IsKey = true, IsFilterable = true, IsSortable = true },
new SearchableField("hotelName") { IsFilterable = true, IsSortable = true },
new SearchableField("description") { Analyzer = LexicalAnalyzerName.EnLucene },
new SearchableField("description") { AnalyzerName = LexicalAnalyzerName.EnLucene },
new SearchableField("tags", collection: true) { IsFilterable = true, IsFacetable = true },
new ComplexField("address")
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1093,26 +1093,26 @@ public ScoringProfile(string name) { }
public partial class SearchableField : Azure.Search.Documents.Indexes.Models.SimpleField
{
public SearchableField(string name, bool collection = false) : base (default(string), default(Azure.Search.Documents.Indexes.Models.SearchFieldDataType)) { }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? Analyzer { get { throw null; } set { } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? IndexAnalyzer { get { throw null; } set { } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? SearchAnalyzer { get { throw null; } set { } }
public System.Collections.Generic.IList<string> SynonymMaps { get { throw null; } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? AnalyzerName { get { throw null; } set { } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? IndexAnalyzerName { get { throw null; } set { } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? SearchAnalyzerName { get { throw null; } set { } }
public System.Collections.Generic.IList<string> SynonymMapNames { get { throw null; } }
}
public partial class SearchField
{
public SearchField(string name, Azure.Search.Documents.Indexes.Models.SearchFieldDataType type) { }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? Analyzer { get { throw null; } set { } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? AnalyzerName { get { throw null; } set { } }
public System.Collections.Generic.IList<Azure.Search.Documents.Indexes.Models.SearchField> Fields { get { throw null; } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? IndexAnalyzer { get { throw null; } set { } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? IndexAnalyzerName { get { throw null; } set { } }
public bool? IsFacetable { get { throw null; } set { } }
public bool? IsFilterable { get { throw null; } set { } }
public bool? IsHidden { get { throw null; } set { } }
public bool? IsKey { get { throw null; } set { } }
public bool? IsSearchable { get { throw null; } set { } }
public bool? IsSortable { get { throw null; } set { } }
public string Name { get { throw null; } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? SearchAnalyzer { get { throw null; } set { } }
public System.Collections.Generic.IList<string> SynonymMaps { get { throw null; } }
public Azure.Search.Documents.Indexes.Models.LexicalAnalyzerName? SearchAnalyzerName { get { throw null; } set { } }
public System.Collections.Generic.IList<string> SynonymMapNames { get { throw null; } }
public Azure.Search.Documents.Indexes.Models.SearchFieldDataType Type { get { throw null; } }
public override string ToString() { throw null; }
}
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.

Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,43 @@ public bool? IsHidden
[CodeGenMember("key")]
public bool? IsKey { get; set; }

/// <summary>
/// Gets or sets the name of the analyzer to use for the field.
/// This option can be used only with searchable fields and it cannot be set together with either <see cref="SearchAnalyzerName"/> or <see cref="IndexAnalyzerName"/>.
/// Once the analyzer is chosen, it cannot be changed for the field.
/// Must be null for complex fields.
/// </summary>
[CodeGenMember("analyzer")]
public LexicalAnalyzerName? AnalyzerName { get; set; }

/// <summary>
/// Gets or sets the name of the analyzer used at search time for the field.
/// This option can be used only with searchable fields.
/// It must be set together with <see cref="IndexAnalyzerName"/> and it cannot be set together with the <see cref="AnalyzerName"/> option.
/// This property cannot be set to the name of a language analyzer; use the <see cref="AnalyzerName"/> property instead if you need a language analyzer.
/// This analyzer can be updated on an existing field.
/// Must be null for complex fields.
/// </summary>
[CodeGenMember("searchAnalyzer")]
public LexicalAnalyzerName? SearchAnalyzerName { get; set; }

/// <summary>
/// Gets or sets the name of the analyzer used at indexing time for the field.
/// This option can be used only with searchable fields.
/// It must be set together with <see cref="SearchAnalyzerName"/> and it cannot be set together with the <see cref="AnalyzerName"/> option.
/// This property cannot be set to the name of a language analyzer; use the <see cref="AnalyzerName"/> property instead if you need a language analyzer.
/// Once the analyzer is chosen, it cannot be changed for the field.
/// Must be null for complex fields. </summary>
[CodeGenMember("indexAnalyzer")]
public LexicalAnalyzerName? IndexAnalyzerName { get; set; }

// TODO: Remove "overrides" for collection properties when https://github.com/Azure/autorest.csharp/issues/521 is fixed.

/// <summary>
/// Gets a list of names of synonym maps associated with this field. Only fields where <see cref="IsSearchable"/> is true can have associated synonym maps.
/// </summary>
[CodeGenMember("synonymMaps")]
public IList<string> SynonymMaps { get; internal set; }
public IList<string> SynonymMapNames { get; internal set; }

/// <summary>
/// Gets a list of nested fields if this field is of type <see cref="SearchFieldDataType.Complex"/> or "Collection(DataType.Complex)".
Expand Down
Loading