Skip to content
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

Searching the entire index #1916

Open
lypynskyi opened this issue Jul 4, 2023 · 0 comments
Open

Searching the entire index #1916

lypynskyi opened this issue Jul 4, 2023 · 0 comments

Comments

@lypynskyi
Copy link

lypynskyi commented Jul 4, 2023

Hello!
I have an issue connected with searching the entire index from docs
I got the following error using DI in my service: The service "fos_elastica.finder.app" has a dependency on a non-existent service "fos_elastica.elastica_to_model_transformer.app".
PHP 8.2
elastica-bundle 6.3.1
Elasticsearch 7.17.10
Symfony 5.4.25

elastica.yaml:

fos_elastica:
    client:
        class: Elasticsearch\Client
    clients:
        default:
            host: '%elastica_host%'
            port: '%elastica_port%'
            transport: '%elastica_transport%'
    indexes:
        app:
            finder: ~

services.yaml:

App\Service\Search:
    public: true
    arguments:
      [ '@fos_elastica.finder.app']

and Search service:

class Search
{
      public function __construct(
              private PaginatedFinderInterface $finder,
          ) {}
}

What could be missing in my config or inside the service class?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant