fixed typo
added support to exclude fields to be indexed