adding text search score factor and fixes