could this code be shared with TransportSearchDfsQueryAndFetchAction?