Add schranz-search/symfony-bundle config (#1575)

This commit is contained in:
ToshY
2023-12-18 18:16:48 +01:00
committed by GitHub
parent 3298326fdb
commit 3daf0c10a2
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
schranz_search:
schemas:
default:
dir: '%kernel.project_dir%/config/schemas'
engines:
default:
adapter: '%env(SEAL_DSN)%'
when@test:
schranz_search:
engines:
default:
adapter: 'memory://'
index_name_prefix: test_

View File

@@ -0,0 +1,19 @@
{
"bundles": {
"Schranz\\Search\\Integration\\Symfony\\SearchBundle": ["all"]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "Install one of the following adapters: https://schranz-search.github.io/schranz-search/getting-started/index.html",
"#2": "SEAL_DSN=\"meilisearch://127.0.0.1:7700\"",
"#3": "SEAL_DSN=\"algolia://ALGOLIA_APPLICATION_ID:ALGOLIA_ADMIN_API_KEY\"",
"#4": "SEAL_DSN=\"elasticsearch://127.0.0.1:9200\"",
"#5": "SEAL_DSN=\"opensearch://127.0.0.1:9200\"",
"#6": "SEAL_DSN=\"redisearch://127.0.0.1:6379\"",
"#7": "SEAL_DSN=\"solr://127.0.0.1:8983\"",
"#8": "SEAL_DSN=\"typesense://S3CR3T@127.0.0.1:8108\"",
"SEAL_DSN": "loupe://var/indexes"
}
}