Only index most specific hierarchic

Added a check to only index the most specific object (targetURI) when a
hierarchic taxonomy is used.