Allow passing a query to synchronize so you can only index a subset of documents