You won't be able to cluster the base64 encoded string directly. But, if you 
specify "fields" when firing your query, you will be able to do that. Please 
have a look at the following gist:
https://gist.github.com/anonymous/0e75d85d3a8e97c95f63
You will now be able to use files.file when clustering your result. However, if 
you have an array of attachments, it will treat all the files as a single file 
when clustering. Only way we can access them as array is through _source, which 
again will only return base64 encoded string. Not sure how to get around this 
issue. But for single files, using "field_mapping": { 
"title":[fields.files.file"]} should work. Let me know how it goes.

-- 
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/8EFF6C0A-4E11-442D-9449-4FEED27A2739%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to