Add the possibility to toggle index usage when querying.
Fix tests