static Collection<Phase> linearPhases(String... phases) {
            List<Phase> result = new ArrayList<>();

            for (int i=0; i < phases.length - 1; ++i) {
                result.add(createPhase(phases[i], phases[i+1]));
            }

            if (phases.length > 0) {
                result.add(createPhase(lastElement(phases), null));
            }

            return result;
        }
Creates the search chains vespaPhases, vespa and native.

@author Tony Vaagenes
config-model/src/main/java/com/yahoo/vespa/model/container/search/searchchain/defaultsearchchains/VespaSearchChainsCreator.java