class RequestToElasticsearch extends RequestToAbstract {

    public static RequestToElasticsearch getRequestToElasticsearch(AbstractParser<?> requestParser)
        throws VitamException {
        if (requestParser instanceof SelectParserMultiple || requestParser instanceof SelectParserSingle) {
            return new SelectToElasticsearch(requestParser);
        } else {
            throw new VitamException("Only Select Request is allowed on Indexation");
        }
    }

    public  RequestToElasticsearch(AbstractParser<?> requestParser);

}