This repository was archived by the owner on Dec 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Support for attachment type #5
Comments
Related to elastic/elasticsearch-mapper-attachments#44 |
2.0.1 support base64 encoded UTF-8 texts. Example added to README how to use langdetect with attachment mapper plugin. |
@jprante that's perfect. One more request I would need to store the language code using "store": "yes": PUT my_index
{
"mappings" : {
"docs" : {
"properties" : {
"file" : {
"type" : "attachment",
"fields" : {
"file" : {
"type" : "multi_field",
"fields" : {
"file" : {
"type" : "string",
"store": "yes"
},
"language" : {
"type" : "langdetect",
"store": "yes"
}
}
}
}
}
}
}
}
} Resulting mapping does not show store: true: {
"docs": {
"properties": {
"file": {
"type": "attachment",
"path": "full",
"fields": {
"file": {
"type": "multi_field",
"fields": {
"file": {
"type": "string",
"store": true
},
"language": {
"type": "langdetect",
"fields": {
"language": {
"type": "string"
},
"lang": {
"type": "string"
}
}
}
}
}, Is that possible? |
Sure. You have to treat the Like this:
|
Great! Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is there a way to use this plugin with
attachment
type?The text was updated successfully, but these errors were encountered: