elasticsearch/elasticsearch — pull request #4107 by javanna (2013-11-06 12:37:27+00:00)
Title: Fixed fetch subphase to not recreate the HitContext for each hit, so that the object cache stays the same

Fixed fetch subphase to not recreate the HitContext for each hit, so that the object cache stays the same

Fixed also bug in the fast vector highlighter which was raised by enabling the object cache, due to null FieldQuery (NPE) in case the objects are taken from the cache

Added tests to check if there are issues when highlighting multiple fields at the same time

Closes #4106