@@ -31,11 +31,19 @@ public partial interface IAnalyzeRequest
3131
3232 ///<summary>The text on which the analysis should be performed (when request body is not used)</summary>
3333 [ JsonProperty ( "text" ) ]
34- string [ ] Text { get ; set ; }
34+ IEnumerable < string > Text { get ; set ; }
3535
3636 ///<summary>The name of the tokenizer to use for the analysis</summary>
3737 [ JsonProperty ( "tokenizer" ) ]
3838 Union < string , ITokenizer > Tokenizer { get ; set ; }
39+
40+ ///<summary>Return more details, and output the analyzer chain per step in the process</summary>
41+ [ JsonProperty ( "explain" ) ]
42+ bool ? Explain { get ; set ; }
43+
44+ ///<summary>Filter only certain token attributes to be returned</summary>
45+ [ JsonProperty ( "attributes" ) ]
46+ IEnumerable < string > Attributes { get ; set ; }
3947 }
4048
4149 public partial class AnalyzeRequest
@@ -49,6 +57,12 @@ public AnalyzeRequest(IndexName indices, string textToAnalyze)
4957 /// <inheritdoc />
5058 public Union < string , ITokenizer > Tokenizer { get ; set ; }
5159
60+ /// <inheritdoc />
61+ public bool ? Explain { get ; set ; }
62+
63+ /// <inheritdoc />
64+ public IEnumerable < string > Attributes { get ; set ; }
65+
5266 /// <inheritdoc />
5367 public Union < string , IAnalyzer > Analyzer { get ; set ; }
5468
@@ -65,7 +79,7 @@ public AnalyzeRequest(IndexName indices, string textToAnalyze)
6579 public Field Field { get ; set ; }
6680
6781 /// <inheritdoc />
68- public string [ ] Text { get ; set ; }
82+ public IEnumerable < string > Text { get ; set ; }
6983
7084 }
7185
@@ -78,7 +92,9 @@ public partial class AnalyzeDescriptor
7892 string IAnalyzeRequest . Normalizer { get ; set ; }
7993 AnalyzeTokenFilters IAnalyzeRequest . Filter { get ; set ; }
8094 Field IAnalyzeRequest . Field { get ; set ; }
81- string [ ] IAnalyzeRequest . Text { get ; set ; }
95+ IEnumerable < string > IAnalyzeRequest . Text { get ; set ; }
96+ bool ? IAnalyzeRequest . Explain { get ; set ; }
97+ IEnumerable < string > IAnalyzeRequest . Attributes { get ; set ; }
8298
8399 ///<summary>The name of the tokenizer to use for the analysis</summary>
84100 public AnalyzeDescriptor Tokenizer ( string tokenizer ) => Assign ( a => a . Tokenizer = tokenizer ) ;
@@ -135,7 +151,15 @@ public AnalyzeDescriptor Filter(Func<AnalyzeTokenFiltersDescriptor, IPromise<Ana
135151 public AnalyzeDescriptor Text ( params string [ ] text ) => Assign ( a => a . Text = text ) ;
136152
137153 ///<summary>The text on which the analysis should be performed</summary>
138- public AnalyzeDescriptor Text ( IEnumerable < string > text ) => Assign ( a => a . Text = text . ToArray ( ) ) ;
154+ public AnalyzeDescriptor Text ( IEnumerable < string > text ) => Assign ( a => a . Text = text ) ;
155+
156+ /// <inheritdoc cref="IAnalyzeRequst.Explain" />
157+ public AnalyzeDescriptor Explain ( bool ? explain = true ) => Assign ( a => a . Explain = explain ) ;
158+
159+ /// <inheritdoc cref="IAnalyzeRequst.Attributes" />
160+ public AnalyzeDescriptor Attributes ( params string [ ] attributes ) => Assign ( a => a . Attributes = attributes ) ;
139161
162+ /// <inheritdoc cref="IAnalyzeRequst.Attributes" />
163+ public AnalyzeDescriptor Attributes ( IEnumerable < string > attributes ) => Assign ( a => a . Attributes = attributes ) ;
140164 }
141165}
0 commit comments