waitForIndexes();
// Compute a query plan that will NOT use this index, since the selector doesn't match the index's node type.
// If we would use this index, the index doesn't know about non-mix:title nodes like the 'other' node ...
Query query = jcrSql2Query("SELECT * FROM [nt:base] WHERE [jcr:title] = 'The Title'");
validateQuery().rowCount(2L).validate(query, query.execute());
// Compute a query plan that will NOT use this index, since the selector doesn't match the index's node type.
// If we would use this index, the index doesn't know about non-mix:title nodes like the 'other' node ...
query = jcrSql2Query("SELECT * FROM [nt:base] WHERE [jcr:title] LIKE '% Title'");
validateQuery().rowCount(3L).validate(query, query.execute());