forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mappings editor] Add support for positive_score_impact to rank_featu…
…re (elastic#76824)
- Loading branch information
1 parent
23eaf58
commit 075145e
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...nents/mappings_editor/components/document_fields/fields/field_types/rank_feature_type.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
import React from 'react'; | ||
import { i18n } from '@kbn/i18n'; | ||
|
||
import { BasicParametersSection, EditFieldFormRow } from '../edit_field'; | ||
|
||
export const RankFeatureType = () => { | ||
return ( | ||
<BasicParametersSection> | ||
<EditFieldFormRow | ||
title={i18n.translate( | ||
'xpack.idxMgmt.mappingsEditor.rankFeature.positiveScoreImpactFieldTitle', | ||
{ | ||
defaultMessage: 'Positive score impact', | ||
} | ||
)} | ||
description={i18n.translate( | ||
'xpack.idxMgmt.mappingsEditor.rankFeature.positiveScoreImpactFieldDescription', | ||
{ | ||
defaultMessage: | ||
'Rank features that correlate negatively with the score should disable this field.', | ||
} | ||
)} | ||
formFieldPath="positive_score_impact" | ||
/> | ||
</BasicParametersSection> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters