/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the kendra-2019-02-03.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Kendra.Model
{
///
/// Provides information about how a custom index field is used during a search.
///
public partial class Search
{
private bool? _displayable;
private bool? _facetable;
private bool? _searchable;
private bool? _sortable;
///
/// Gets and sets the property Displayable.
///
/// Determines whether the field is returned in the query response. The default is true
.
///
///
public bool Displayable
{
get { return this._displayable.GetValueOrDefault(); }
set { this._displayable = value; }
}
// Check to see if Displayable property is set
internal bool IsSetDisplayable()
{
return this._displayable.HasValue;
}
///
/// Gets and sets the property Facetable.
///
/// Indicates that the field can be used to create search facets, a count of results for
/// each value in the field. The default is false
.
///
///
public bool Facetable
{
get { return this._facetable.GetValueOrDefault(); }
set { this._facetable = value; }
}
// Check to see if Facetable property is set
internal bool IsSetFacetable()
{
return this._facetable.HasValue;
}
///
/// Gets and sets the property Searchable.
///
/// Determines whether the field is used in the search. If the Searchable
/// field is true
, you can use relevance tuning to manually tune how Amazon
/// Kendra weights the field in the search. The default is true
for string
/// fields and false
for number and date fields.
///
///
public bool Searchable
{
get { return this._searchable.GetValueOrDefault(); }
set { this._searchable = value; }
}
// Check to see if Searchable property is set
internal bool IsSetSearchable()
{
return this._searchable.HasValue;
}
///
/// Gets and sets the property Sortable.
///
/// Determines whether the field can be used to sort the results of a query. If you specify
/// sorting on a field that does not have Sortable
set to true
,
/// Amazon Kendra returns an exception. The default is false
.
///
///
public bool Sortable
{
get { return this._sortable.GetValueOrDefault(); }
set { this._sortable = value; }
}
// Check to see if Sortable property is set
internal bool IsSetSortable()
{
return this._sortable.HasValue;
}
}
}