Optimizing Generalized Path Expressions Using a Cocktail of Database and Full Text Indexes