-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Chore] Mapping file not found #191
Comments
Are you using the provided service? Can you show some code? Because it's very suspicious that the configurationDirectory is empty. I just tried on a new project, and I cannot reproduce. With the same config as in the README and you, this works: <?php
namespace App\Controller;
use JoliCode\Elastically\IndexBuilder;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
class HomeController extends AbstractController
{
#[Route('/', name: 'app_home')]
public function index(IndexBuilder $builder): JsonResponse
{
$builder->createIndex('my-foobar-index');
return $this->json([
'message' => 'Welcome to your new controller!',
'path' => 'src/Controller/HomeController.php',
]);
}
} But if you get the IndexBuilder in another way, it may break. So I need to know how you used it 👍 |
The problem, when this tutorial : In this tutorial, i can see get the service by the client service like this : $indexBuilder = $this->client->getIndexBuilder(); i has resolved this problem when i inject each service by autowiring like this : |
Oh ok I see. The library changed a lot since the tutorial, we need to make some changes on it. Thanks for the feedback I'm leaving this issue open until the tutorial is fixed as well. |
Now, i has new problem why i has abandoned Elastically. I just return this problem. I use the last version of Api Platform and has library conflict beetween Api Platform and Elasticaly. But it's an other problem. Good day for you 😁 |
Hi,
First, here is my configuration :
Elastically 1.9.2 (tried with 1.9.0 and 1.9.1)
Symfony 7.0.6 with PHP 8.2.21
I have a similar situation to Issue #187, when I try to create the index
land-registry
I have this error message :This is the configuration files I use :
The text was updated successfully, but these errors were encountered: