Yes script filter can accomplish this but it could be very slow if you have lots documents. You can access the source in script using the _source reference.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html#query-dsl-script-filter -- 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/c3fef509-5861-4b40-8a3c-ccd5c95044a4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
