Hi,
I installed elastic search 5.0.1 in Unix and installed 'ingest_Attachment_5.0.1' (Also restarted after ingest attachment installation).
I created an index using command : curl -X PUT 10.242.104.46:9200/test1.
Then when i tried creating mapping, i got an error as shown below. Please help to resolve this,
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"No handler for type [attachment] declared on field [file]"}],"type":"mapper_parsing_exception","reason":"No handler for type [attachment] declared on field [file]"},"status":400}.
Thanks David, I will try the code as in that guide ..Before that , Could i please ask you , how do i get the base64 "string" that is being passed for the field 'data'.
For instance, {
"data": "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0="
}
I am new to elastic search, Requesting your help please. I am trying to index pdf documents in elasticsearch
Thanks again David .. I tried with the example given in https://www.elastic.co/guide/en/elasticsearch/plugins/current/using-ingest-attachment.html
i created 'myindex2' wih pipeline attachment as shown below, curl -XGET 'http://10.242.104.46:9200/my_index2/my_type/my_id?pretty'
{
"_index" : "my_index2",
"_type" : "my_type",
"_id" : "my_id",
"_version" : 1,
"found" : true,
"_source" : {
"data" : "e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=",
"attachment" : {
"content_type" : "application/rtf",
"language" : "ro",
"content" : "Lorem ipsum dolor sit amet",
"content_length" : 28
}
}
}
I tried to do search the content 'dolor' using below command,
curl -XGET 'http://10.242.104.46:9200/my_index2/search?q=content:dolor'
Output HIts is 0. Please correct if i am doing it wrong ..emphasized text_
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.