import { ML_RESULTS_INDEX_PATTERN } from '../../../../../common/constants/index_patterns' ; import { getInfluencers , ExplorerJob } from '../../explorer_utils' ; export function getIndexPattern ( selectedJobs ) { return { title : ML_RESULTS_INDEX_PATTERN , fields : getInfluencers ( selectedJobs ) . map ( ( influencer ) => ( { name : influencer , type : 'string' , aggregatable : true , searchable : true , } ) ) , } ; }