-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sparse_vector field support #168186
sparse_vector field support #168186
Changes from 7 commits
1b87c3c
ae9df2f
d8086e8
316ca69
9a4c78f
51bf42f
995e2de
0a29bfe
3b9cb51
829bf71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -851,6 +851,23 @@ export const TYPE_DEFINITION: { [key in DataType]: DataTypeDefinition } = { | |
</p> | ||
), | ||
}, | ||
sparse_vector: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @carlosdelest, just a question: why are we adding these changes to the Index management plugin? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for clarifying! Tested locally and LGTM. |
||
label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.sparseVectorDescription', { | ||
defaultMessage: 'Sparse vector', | ||
}), | ||
value: 'sparse_vector', | ||
documentation: { | ||
main: 'sparse-vector.html', | ||
}, | ||
description: () => ( | ||
<p> | ||
<FormattedMessage | ||
id="xpack.idxMgmt.mappingsEditor.dataType.sparseVectorLongDescription" | ||
defaultMessage="Sparse vector fields index features and weights, useful for document scoring." | ||
/> | ||
</p> | ||
), | ||
}, | ||
point: { | ||
label: i18n.translate('xpack.idxMgmt.mappingsEditor.dataType.pointDescription', { | ||
defaultMessage: 'Point', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here, do we want to use tokenDenseVector or should we create a new token for sparse vector?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreadelrio do we have an icon we can use or add to eui?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Andrea is already pinged in elastic/eui#7257 (comment). 😉 My plan is to open a separate PR when that's ready.