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

Expose indexing service, add command #2

Open
tacman opened this issue Dec 3, 2018 · 0 comments
Open

Expose indexing service, add command #2

tacman opened this issue Dec 3, 2018 · 0 comments

Comments

@tacman
Copy link
Contributor

tacman commented Dec 3, 2018

Since you've already implemented calling the indexer and creating indexes for Behat, can you expose the service that does the index and perhaps add a Symfony command that demonstrates how to call / use it?

An injectable service would allow indexing to easily called from a web page or background message processor (e.g. using rabbitmq).

A command line demonstration would allow developers to customize their cron jobs and other tools. For example, I have one script that calls the indexer that checks the timestamp of the .spp file against the most recent database update of the relevant tables to determine if indexing is needed. I'd love to be able to call an indexing service rather than exec'ing indexer.

Perhaps you already offer some of this, in which case it's just a matter of documenting how to inject the service and trigger the indexing. I'm using Symfony4, so an example that didn't use the container would be very helpful.

Thanks.

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