I\'m trying to learn elasticsearch with a simple example application, that lists quotations associated with people. The example mapping might look like:
{
If scripting is enabled, this should work:
"script": { "inline": "for(element in _source.quotations) { if(element == 'this' && element == 'these') {return true;} }; return false;" }