added check for relevance in indexthread