@Inject
public WriterCollector(SearchIntoContext context,
FetchSubPhase[] fetchSubPhases) {
this.context = context;
this.fetchSubPhases = fetchSubPhases;
this.mappedFields = new MappedFields(context);
if (!context.hasFieldNames()) {
if (context.hasPartialFields()) {
// partial fields need the source, so fetch it,
// but don't return it
fieldsVisitor = new UidAndSourceFieldsVisitor();