Unable to access doc['field'].value in script_score

Hi.

Resolved. The quotes were not being escaped.
changing doc['alexaRank'] to doc[' " ' "alexaRank" ' " '] solved the problem.