Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
Provides information about how a custom index field is used during a search.
See: newSearch
smart constructor.
Search' | |
|
Instances
FromJSON Search Source # | |
ToJSON Search Source # | |
Defined in Amazonka.Kendra.Types.Search | |
Generic Search Source # | |
Read Search Source # | |
Show Search Source # | |
NFData Search Source # | |
Defined in Amazonka.Kendra.Types.Search | |
Eq Search Source # | |
Hashable Search Source # | |
Defined in Amazonka.Kendra.Types.Search | |
type Rep Search Source # | |
Defined in Amazonka.Kendra.Types.Search type Rep Search = D1 ('MetaData "Search" "Amazonka.Kendra.Types.Search" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "Search'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "displayable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "facetable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "searchable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "sortable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))))) |
Create a value of Search
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:displayable:Search'
, search_displayable
- Determines whether the field is returned in the query response. The
default is true
.
$sel:facetable:Search'
, search_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
.
$sel:searchable:Search'
, search_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.
$sel:sortable:Search'
, search_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
.
search_displayable :: Lens' Search (Maybe Bool) Source #
Determines whether the field is returned in the query response. The
default is true
.
search_facetable :: Lens' Search (Maybe Bool) Source #
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
.
search_searchable :: Lens' Search (Maybe Bool) Source #
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.