Fix bug in index building, added Lucene Fields API based term vector extraction and cosine and tanimoto coefficient calculation.