Added indexing to the rule engine's topic matching to improve rule search performance.