I have my mappings as such 

    {
    "attachment": {
        "properties": {
            "file": {
                "type": "attachment",
                "fields": {
                    "title": {
                        "store": "yes"
                    },
                    "author": {
                        "store": "yes"
                    },
                    "date": {
                        "store": "yes"
                    },
                    "keywords": {
                        "store": "yes"
                    },
                    "content_type": {
                        "store": "yes"
                    },
                    "file": {
                        "term_vector": "with_positions_offsets",
                        "store": "yes",
                        "index": "analyzed"
                        }
                   }
                }
            }
        }
    }


I want to be able to add custom categories to each file, for example if the 
file is an html file then i want to read the meta tag inside and add those 
categories.

If there is a better approach please let me know so as well, I am just 
trying to get my feet wet with Elasticsearch and just working with the 
attachment plugin for the first time.








also created a SO question on 
it: 
http://stackoverflow.com/questions/21711216/how-to-create-custom-categories-for-text-files-indexed-in-elasticsearch-using-th

-- 
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/a7ce1436-bb86-40d2-a5ec-82a4d7fada75%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to