elastic / elasticsearch-mapper-attachments

Mapper Attachments Type plugin for Elasticsearch
https://www.elastic.co
Apache License 2.0
504 stars 94 forks source link

Small mistake in documentation #182

Closed chrisupb closed 8 years ago

chrisupb commented 9 years ago

In the section Highlighting attachments the field content must be called field.

PUT /test/person/_mapping
{
  "person": {
    "properties": {
      "file": {
        "type": "attachment",
        "fields": {
          "******content*****": {
            "type": "string",
            "term_vector":"with_positions_offsets",
            "store": true
          }
        }
      }
    }
  }
}
dadoonet commented 9 years ago

Which version are you using?

chrisupb commented 9 years ago

It's in the master, on the main github project page. Previous versions where correct.

dadoonet commented 9 years ago

On which elasticsearch version you tried this?

chrisupb commented 8 years ago

I tried it with 1.6. With this version, both names obviously must be the same.

dadoonet commented 8 years ago

So here is the documentation for your version: https://github.com/elastic/elasticsearch-mapper-attachments/tree/v2.6.0/#version-260-for-elasticsearch-16

Have a closer look at the README file. Documentation depends on the version you are using.