The best idea is not to use mapper attachment and extract content before indexing using Apache Tika for example, which is used as well in mapper attachment. That's what I did in FSRiver project. At first I was using mapper attachment but definitely not using it gives more flexibility and more control of what you are sending over the wire.
That said, you can use exclude to remove from _source some content. See: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-source-field.html#include-exclude -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 7 mars 2014 à 16:59:23, Pavel Hloušek ([email protected]) a écrit: I forgot to mention that I used the latest releases of both ES and the mapper-attchments plugin. Dne pátek, 7. března 2014 16:37:51 UTC+1 Pavel Hloušek napsal(a): Hello, I'm new to elasticsearch and I'm currently playing with mapper-attachments plugin. My idea is to use ES to index file contents and NOT to store the file contents. Is it possible? What would the mapping be? Cannot get it working... Thanks for help Pavel -- 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/38ed817d-3ed5-47da-8498-41aebe692a22%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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/etPan.5319edb4.12200854.9291%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/d/optout.
