vhrb/elastic-search

Integration official PHP client for Elasticsearch into Nette Framework

v5.0 2016-11-29 02:52 UTC

This package is not auto-updated.

Last update: 2021-02-19 22:23:11 UTC


README

Integration official PHP client for Elasticsearch into Nette Framework

Inspired by Kdyby/Search

Requirements

Vhrb/ElasticSearch requires PHP 5.3 or higher.

Install

The best way to install Kdyby/ElasticSearch is using Composer:

$ composer require vhrb/elastic-search:@dev
extension:
	elastic: Vhrb\ElasticSearch\DI\SearchExtension

Config

Optional

elastic:
	debugger: %debugMode%	
	...

Elastic search config

Use of

class EsService {

	/** @var Elasticsearch\Client */
	private $client;
	
	public function __construct(Elasticsearch\Client $client) {
		$this->client = $client;
	}
}

Client support all ElasticSearch-php methods!

Homepage https://www.vhrb.cz / Vhřb.