Add additional index construction method to address issues defining patterns between selectors with different numbers of levels.