ebrana / elasticsearch-extension
Ebrana elasticsearch extension for Nette
dev-main
2024-10-04 09:51 UTC
Requires
- php: >= 8.3.0
- ebrana/elasticsearch: dev-main
- netom/lz-string-php: ~1.3
- nette/application: ~v3.2.5
- nette/caching: ~v3.3.1
- nette/di: ~v3.2.2
- psr/cache: ~3.0
- psr/simple-cache: ~3.0
- tracy/tracy: ~v2.10.3
Requires (Dev)
- phpstan/extension-installer: ~1.1.0
- phpstan/phpstan: ~1.8.9
- phpstan/phpstan-nette: ~1.1.0
This package is auto-updated.
Last update: 2024-11-04 10:00:24 UTC
README
Elasticsearch Nette extension pro balíček https://github.com/ebrana/elasticsearch.
Instalace
composer require ebrana/elasticsearch-extension
Konfigurace
elasticsearch:
profiling: true
indexPrefix: "katalog_"
# cache je nepovinné (adapters: https://doc.nette.org/cs/caching#toc-uloziste)
cache: 'cache.system'
# tato sekce může být vynechána, protože attributes je default driver
# driver:
# type: "attributes" # attributes nebo json
# keyResolver: Elasticsearch\Bundle\KeyResolver # resolvuje klíče typu nested nebo object
mappings:
- App\Entity\Elasticsearch\Product
connection:
hosts:
- '%env(resolve:ELASTICSEARCH_URL)%'
username: ""
password: ""
cloudId: ""
retries: 10
elasticMetaHeader: true/false
logger: "@logger" #Psr\Log\LoggerInterface
httpClient: ... #Psr\Http\Client\ClientInterface
asyncHttpClient: ... #Http\Client\HttpAsyncClient
nodePool: ... #Elastic\Transport\NodePool\NodePoolInterface
httpClientOptions: ... # podle http clienta
api:
apiKey: ""
id: ""
ssl:
sslVerification: true/false
sslCA: ""
sslCert:
cert: ""
password: ""
sslKey:
key: ""
password: ""