clear pending
add serializer for saving in lucene index with flat structure