RuleScript indexing and search