Hi Shashi,
I just tried to reproduce your issue. I: * downloaded elasticsearch 1.4.2 * ran bin/plugin -install elasticsearch/elasticsearch-mapper-attachments/2.4.1 * ran bin/elasticsearch Then: curl -XPUT http://localhost:9200/test <http://localhost:9200/test> curl -XPUT http://localhost:9200/test/person/_mapping -d '{ "person": { "properties": { "file": { "type": "attachment", "path": "full", "fields": { "file": { "type": "string", "term_vector":"with_positions_offsets", "store": true } } } } } }’ Which gave: {"acknowledged":true} And in logs: [2015-01-09 15:33:31,793][INFO ][cluster.metadata ] [Inza] [test] create_mapping [person] curl -XGET "http://localhost:9200/test/person/_mapping?pretty" gave: { "test" : { "mappings" : { "person" : { "properties" : { "file" : { "type" : "attachment", "path" : "full", "fields" : { "file" : { "type" : "string", "store" : true, "term_vector" : "with_positions_offsets" }, "author" : { "type" : "string" }, "title" : { "type" : "string" }, "name" : { "type" : "string" }, "date" : { "type" : "date", "format" : "dateOptionalTime" }, "keywords" : { "type" : "string" }, "content_type" : { "type" : "string" }, "content_length" : { "type" : "integer" }, "language" : { "type" : "string" } } } } } } } } Everything is fine. I don’t know what you are doing. -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr <https://twitter.com/elasticsearchfr> | @scrutmydocs <https://twitter.com/scrutmydocs> > Le 8 janv. 2015 à 06:51, Shashi <[email protected]> a écrit : > > > 1: curl -XPUT http://localhost:9200/test <http://localhost:9200/test> > > output: > {"acknowledged":true} > 2:curl -XPUT http://localhost:9200/test/person/_mapping > <http://www.google.com/url?q=http%3A%2F%2Flocalhost%3A9200%2Ftest%2Fperson%2F_mapping&sa=D&sntz=1&usg=AFQjCNHqXUOjd8oZ0fHnWz3Ihk80m-fH2A> > -d ' > > { "person": { "properties": { "file": { > "type": "attachment", "path": "full", "fields": { > "file": { "type": "string", > "term_vector":"with_positions_ > offsets", "store": true } } } } }}' > > output: > > MapperParsingException-No handler for type > [attachment] declared on field > > > -I went through this steps ,please also tell me about any further required > steps before the above two steps... > > On Wednesday, January 7, 2015 1:32:02 PM UTC+5:30, David Pilato wrote: > How exactly are you creating your mapping? > Which command did you send? > > -- > David ;-) > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs > > Le 7 janv. 2015 à 08:55, Shashi <[email protected] <javascript:>> > a écrit : > >> >> I have only one node....I didnot get about REST or Java client,will you >> please explain about REST or Java client.. >> On Wednesday, January 7, 2015 12:59:44 PM UTC+5:30, David Pilato wrote: >> Do you have only one node? Are you using REST or Java client? >> >> -- >> David ;-) >> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs >> >> Le 7 janv. 2015 à 08:18, Shashi <[email protected] <>> a écrit : >> >>> >>> >>> On Tuesday, January 6, 2015 7:15:55 PM UTC+5:30, David Pilato wrote: >>> did you restart elasticsearch? >>> >>> -- >>> David Pilato | Technical Advocate | Elasticsearch.com >>> <http://elasticsearch.com/> >>> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr >>> <https://twitter.com/elasticsearchfr> | @scrutmydocs >>> <https://twitter.com/scrutmydocs> >>> >>> Reply: >>> >>> thank you for your reply. >>> I did restart the elasticsearch service.But still no success. >>> >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "elasticsearch" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected] <>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/elasticsearch/63196764-2864-4214-84bd-146994b0c006%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/elasticsearch/63196764-2864-4214-84bd-146994b0c006%40googlegroups.com?utm_medium=email&utm_source=footer>. >>> For more options, visit https://groups.google.com/d/optout >>> <https://groups.google.com/d/optout>. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elasticsearch" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/090620f9-0b6c-41cf-955f-3e0ba7537cb9%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/090620f9-0b6c-41cf-955f-3e0ba7537cb9%40googlegroups.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/2dfe0649-28ab-4989-a8ab-ca493ca2d176%40googlegroups.com > > <https://groups.google.com/d/msgid/elasticsearch/2dfe0649-28ab-4989-a8ab-ca493ca2d176%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/E9C134AB-0C48-4577-96BD-28DF7512BA79%40pilato.fr. For more options, visit https://groups.google.com/d/optout.
