You can simply add more fields on the same level as file. For example:

  "mappings": {
    "doc": {
      "properties" : {
        "file" : { 
          "type" : "attachment", 
          "fields": {
            "file": { "store": "yes" }
          }
        },
        "meta1": {
          "type": "string", 
          "store": "yes"
        }
      }
    }
  }

And then when you index, just specify a value for the "meta1" field in 
addition to your "file" field.

-- 
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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d53e93b6-c595-43a8-8829-a2f3b68014d1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to