I think the apostrophe is your problem It is not
String script = "doc['po'].value"; but String script = "doc[\"po\"].value"; For implementing best variant of document boost, you should upgrade Elasticsearch to 1.0.0.RC1 (or 0.90.4+) and use function score query like this https://gist.github.com/jprante/8728976 Jörg On Thu, Jan 30, 2014 at 8:17 PM, Mukul Gupta <[email protected]> wrote: > Can anyone please tell me if this is a bug in ElasticSearch-0.90.3 ? > ElasticSearch is not able to read the value of a field from the doc. How is > it possible ? > > > -- 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/CAKdsXoHO7eX_2%2BmRMzM%2BHa_K4ZfhDBsV_N%3D3MQukQ9eXsM1Avg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
