Removed some debug logs.
buildDocIndex doesn't need the query.
renamed queryEuclideanLength to euclideanLength