daniel-iwaniec/elasticsearch-bundle
elasticsearch-php client, ensuring compatibility with modern PHP (8.0+) and Elasticsearch (7.x/8.x) versions.elasticsearch/elasticsearch (≥7.0) and Symfony components (e.g., symfony/dependency-injection).config/packages/ongr_elasticsearch.yaml).daniel-iwaniec/elasticsearch-bundle) lacks stars/activity. Verify if this is a maintained fork or a stale copy—risk of deprecated features or unpatched vulnerabilities.daniel-iwaniec/elasticsearch-bundle actively maintained? If not, consider using the original ONGR/ElasticsearchBundle (1.5k stars) or alternatives like fideloper/proxy for Elasticsearch proxying.ruflin/elastica for lighter use cases) or raw elasticsearch-php client.ongr_elasticsearch.clients.default in config/packages/ongr_elasticsearch.yaml:
ongr_elasticsearch:
clients:
default:
host: '%env(ES_HOST)%'
port: '%env(int:ES_PORT, 9200)%'
scheme: '%env(ES_SCHEME, https)%'
composer require daniel-iwaniec/elasticsearch-bundle
config/bundles.php (Symfony Flex handles this automatically).php bin/console ongr:es:document:generate
@ONGRElasticsearch\Annotation\Document and @ONGRElasticsearch\Annotation\Property:
use ONGRElasticsearch\Annotation as ES;
/**
* @ES\Document(type="product")
*/
class Product {}
Indexer service to sync Doctrine entities to Elasticsearch (if hybrid):
$indexer = $this->container->get('ongr_elasticsearch.indexer');
$indexer->index($product);
$query = $this->container->get('ongr_elasticsearch.query_builder')
->create()
->from('product')
->where('price', '>', 100)
->getQuery();
$results = $query->getResults();
ongr_elasticsearch.doctrine for Doctrine entity listeners to auto-index changes.doctrine/orm and ongr/elasticsearch-doctrine.elasticsearch-php.Indexer batching.elasticsearch-dump or custom scripts to stress-test indexing.How can I help you explore Laravel packages today?