示例#1
0
 /// <summary>
 /// Initializes a new instance of the ResponseCustomization class.
 /// </summary>
 /// <param name="errors">A list of errors that happened to the task, if
 /// any.</param>
 /// <param name="queryAlteration">A boolean to determine if query
 /// alteration have been applied to the search operation.</param>
 /// <param name="synonyms">The synonyms used to apply the search
 /// query.</param>
 /// <param name="filter">The filters applied to the search
 /// result.</param>
 /// <param name="boosts">The boost expressions applied to the search
 /// result.</param>
 public ResponseCustomization(IList <ResponseError> errors = default(IList <ResponseError>), IList <ResponseDebugInfo> debug = default(IList <ResponseDebugInfo>), bool?queryAlteration = default(bool?), IList <Synonym> synonyms = default(IList <Synonym>), IList <string> rules = default(IList <string>), ConditionBase filter = default(ConditionBase), IList <BoostExpression> boosts = default(IList <BoostExpression>))
     : base(errors, debug)
 {
     QueryAlteration = queryAlteration;
     Synonyms        = synonyms;
     Rules           = rules;
     Filter          = filter;
     Boosts          = boosts;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the RequestFilter class.
 /// </summary>
 /// <param name="name">A label that you specify for your aggregations,
 /// which the API passes through and returns with the response.</param>
 /// <param name="aggregations">A list of child aggregations.</param>
 /// <param name="value">The condition to match for the
 /// aggregation.</param>
 public RequestFilter(string name = default(string), IList <RequestAggregationBase> aggregations = default(IList <RequestAggregationBase>), ConditionBase value = default(ConditionBase), bool?includeCustomizations = default(bool?))
     : base(name, aggregations)
 {
     Value = value;
     IncludeCustomizations = includeCustomizations;
     CustomInit();
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the ResponseDiscoveredFacets class.
 /// </summary>
 /// <param name="errors">A list of errors that happened to the task, if
 /// any.</param>
 /// <param name="name">The aggregation name as defined in the
 /// requset.</param>
 /// <param name="estimatedCount">An estimated count of items in this
 /// aggregation.</param>
 /// <param name="aggregations">The list of child aggregations, if
 /// any.</param>
 /// <param name="filter">The filter condition that facet discovery was
 /// limited to, satisfied by the top results.</param>
 public ResponseDiscoveredFacets(IList <ResponseError> errors = default(IList <ResponseError>), IList <ResponseDebugInfo> debug = default(IList <ResponseDebugInfo>), string name = default(string), long?estimatedCount = default(long?), IList <ResponseAggregation> aggregations = default(IList <ResponseAggregation>), ConditionBase filter = default(ConditionBase))
     : base(errors, debug, name, estimatedCount, aggregations)
 {
     Filter = filter;
     CustomInit();
 }