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 |
Synopsis
- data DocumentRelevanceConfiguration = DocumentRelevanceConfiguration' {}
- newDocumentRelevanceConfiguration :: Text -> Relevance -> DocumentRelevanceConfiguration
- documentRelevanceConfiguration_name :: Lens' DocumentRelevanceConfiguration Text
- documentRelevanceConfiguration_relevance :: Lens' DocumentRelevanceConfiguration Relevance
Documentation
data DocumentRelevanceConfiguration Source #
Overrides the document relevance properties of a custom index field.
See: newDocumentRelevanceConfiguration
smart constructor.
Instances
newDocumentRelevanceConfiguration Source #
Create a value of DocumentRelevanceConfiguration
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:name:DocumentRelevanceConfiguration'
, documentRelevanceConfiguration_name
- The name of the index field.
$sel:relevance:DocumentRelevanceConfiguration'
, documentRelevanceConfiguration_relevance
- Provides information for tuning the relevance of a field in a search.
When a query includes terms that match the field, the results are given
a boost in the response based on these tuning parameters.
documentRelevanceConfiguration_name :: Lens' DocumentRelevanceConfiguration Text Source #
The name of the index field.
documentRelevanceConfiguration_relevance :: Lens' DocumentRelevanceConfiguration Relevance Source #
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.