I have to upgrade one of my customer's web site from Symfony 2.8/Elastic Search 1.7/FOS\elastica-bundle" 3.2 to 3.4/6.2/5.0.3.
I have made a copy of the existing web site on a brand new server with Elastic Search 6.2 installed.
I have read many about this and understood I have to rewrite the Bundle that managed Elastic queries because a lot of methods are outdated, specially DSL filters.
Di you have any idea of what the following code (in the Bundle controller) would become in ES 6.2 :
$query = $request->query->get("query","");
$finder = $this->container->get("fos_elastica.finder.scls_concert.concert");
$queryBuilder = new QueryBuilder();
$esTextQuery = $queryBuilder->query()->query_string($query);
$esDateFilter = $queryBuilder->filter()->range('date_start',array('gte' => (new \DateTime())->getTimestamp()));
$esQuery = $queryBuilder->query()->filtered($esTextQuery,$esDateFilter);
$result = $finder->findPaginated($esQuery,["size" => 5]);
Many thanks in advance.