CheckValue implemented for lucene storage

Signed-off-by: Sergey Krivohatskiy <s.krivohatskiy@gmail.com>