Add unit tests for new Search Criterion
Move the generated SQL for AncestorLocation from subquery to join.
It should help with big content databases