1: curl -XPUT 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 Tuesday, January 6, 2015 6:45:30 PM UTC+5:30, Shashi wrote:
>
> Im new in elasticsearch,i installed elasticsearch version - 
> elasticsearch-1.4.2 and mapper-attachment-plugin -2.4.1 .
> Im refering this site 
> https://github.com/elasticsearch/elasticsearch-mapper-attachments but 
> there is error like  'MapperParsingException-No handler for type 
> [attachment] declared on field' after executing this command:
>                        1) curl -XPUT http://localhost:9200/test
>                           output:
>                              {"acknowledged":true} 
>                       2)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          
> }        }      }    } }}'
>
> I also check the log elasticsearch.log it correctly load plugins:
> [2015-01-06 17:56:25,088][INFO ][node                     ] [Tag] 
> version[1.4.2], pid[25034], build[927caff/2014-12-16T14:11:12Z]
> [2015-01-06 17:56:25,088][INFO ][node                     ] [Tag] 
> initializing ...
> *[2015-01-06 17:56:25,129][INFO ][plugins                  ] [Tag] loaded 
> [mapper-attachments], sites []*
> [2015-01-06 17:56:27,420][INFO ][node                     ] [Tag] 
> initialized
> [2015-01-06 17:56:27,420][INFO ][node                     ] [Tag] starting 
> ...
> [2015-01-06 17:56:27,459][INFO ][transport                ] [Tag] 
> bound_address {inet[/0:0:0:0:0:0:0:0:9301]}, publish_address {inet[/
> 192.168.122.24:9301]}
> [2015-01-06 17:56:27,469][INFO ][discovery                ] [Tag] 
> elasticsearch/F1yU83WVSWSZmU6mCDTTIA
> [2015-01-06 17:56:30,604][INFO ][cluster.service          ] [Tag] 
> detected_master 
> [Ion][tqGbZNSDQAa3DgWHo16CVw][isanalab][inet[/192.168.122.24:9300]], added 
> {[Ion][tqGbZNSDQAa3DgWHo16CVw][isanalab][inet[/192.168.122.24:9300]],}, 
> reason: zen-disco-receive(from master 
> [[Ion][tqGbZNSDQAa3DgWHo16CVw][isanalab][inet[/192.168.122.24:9300]]])
> [2015-01-06 17:56:30,685][INFO ][http                     ] [Tag] 
> bound_address {inet[/0:0:0:0:0:0:0:0:9201]}, publish_address {inet[/
> 192.168.122.24:9201]}
> [2015-01-06 17:56:30,685][INFO ][node                     ] [Tag] started
>
> thank you.
>
>
>
>

-- 
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/069be0ec-7f76-4cc1-9fe3-537aece683d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to