Browse Source

Beefing up elastic

imwald
Nuša Pukšič 3 months ago
parent
commit
73a0cd7f8d
  1. 3
      config/packages/fos_elastica.yaml
  2. 6
      config/services.yaml

3
config/packages/fos_elastica.yaml

@ -7,9 +7,8 @@ fos_elastica: @@ -7,9 +7,8 @@ fos_elastica:
password: '%env(ELASTICSEARCH_PASSWORD)%'
indexes:
# create the index by running php bin/console fos:elastica:populate
articles_v2:
articles:
index_name: '%env(ELASTICSEARCH_INDEX_NAME)%'
use_alias: true
settings:
index:
# Increase refresh interval for better write performance

6
config/services.yaml

@ -29,7 +29,7 @@ services: @@ -29,7 +29,7 @@ services:
#
FOS\ElasticaBundle\Finder\FinderInterface:
alias: fos_elastica.finder.articles_v2
alias: fos_elastica.finder.articles
# Redis
Symfony\Component\Cache\Adapter\RedisAdapter:
@ -64,11 +64,11 @@ services: @@ -64,11 +64,11 @@ services:
App\Command\IndexArticlesCommand:
arguments:
$itemPersister: '@fos_elastica.object_persister.articles_v2'
$itemPersister: '@fos_elastica.object_persister.articles'
App\Command\NostrEventFromYamlDefinitionCommand:
arguments:
$itemPersister: '@fos_elastica.object_persister.articles_v2'
$itemPersister: '@fos_elastica.object_persister.articles'
App\Util\NostrPhp\TweakedRequest: ~
swentel\nostr\Request\Request: '@App\Util\NostrPhp\TweakedRequest'

Loading…
Cancel
Save