add empty fields array in indexerTests
refacture long Indexer::_build_document method to smaller parts