Re: How to create custom categories for text files indexed in Elasticsearch using the attachment plugin?

2014-02-11 Thread Sagar Singh
Thanks, I guess i should be asking how would i set those meta data during indexing, is there a feature that ES can perform for me. i saw a way to have custom analyzers and was trying those out to see if i can use that to set the meta for me if there is something in that document. On Tuesday, Fe

Re: How to create custom categories for text files indexed in Elasticsearch using the attachment plugin?

2014-02-11 Thread Binh Ly
Ooops, forgot to mention "store": "yes" is optional. You don't have to store anything if you don't need stored metadata fields. On Tuesday, February 11, 2014 3:57:52 PM UTC-5, Binh Ly wrote: > > You can simply add more fields on the same level as file. For example: > > "mappings": { > "doc"

Re: How to create custom categories for text files indexed in Elasticsearch using the attachment plugin?

2014-02-11 Thread Binh Ly
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":