I'm using the elasticsearch-mapper-attachments plugin and I would like to also see the TIKA converted text content as part of the document. I have tried the following mapping without success:
curl -X PUT "localhost:9200/test" -H 'Content-Type: application/json' -d'
{
"mappings": {
"person" : {
"properties" : {
"copy":{type:"string"},
"file" : {
"type" : "attachment",
"fields" : {
"content" : {"store" : true,type:"string", "copy_to":"copy"},
"title" : {"store" : true},
"date" : {"store" : true},
"keywords" : {"store" : true},
"content_type" : {"store" : true},
"content_length" : {"store" : true},
"language" : {"store" : true}
}
}
}
}
}
}
'
The text content is not available in the "copy" field not in the file.content. Is there a way to have the text content stored?
Hi according to me the content field is marked as stored but I guess you mean that I should mark the copy field as stored,. I'll give it a try.
I'm using ES 2.4.6 can I use the ingest-attachment on this version?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.