public static Parsable fromQueryModel(Model model) {
        return new Parsable()
                .setModel(model)
                .setQuery(model.getQueryString())
                .setFilter(model.getFilter())
                .setExplicitLanguage(Optional.ofNullable(model.getLanguage()))
                .setDefaultIndexName(model.getDefaultIndex())
                .addSources(model.getSources())
                .addRestricts(model.getRestrict())
                .setSelect(model.getParent().getSelect());
    }
Returns the language explicitly set to be used when parsing, or empty if none is set.
container-search/src/main/java/com/yahoo/search/query/parser/Parsable.java