Fixed compile error in the example code

fixed compile error in the example code: you cannot pass a QueryBuilder directly as source of an IndexRequest