From 6de0ea9b2f09b5aa98a7d70a6110de17bbd2b5ce Mon Sep 17 00:00:00 2001 From: Maarten van Middelaar Date: Mon, 27 Jul 2020 15:57:33 +0200 Subject: [PATCH] change default source directory to /src/Document --- DependencyInjection/Configuration.php | 4 ++-- README.md | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index ae62e61a..2f0ab554 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -66,9 +66,9 @@ public function getConfigTreeBuilder() ->arrayNode('source_directories') ->prototype('scalar')->end() - ->defaultValue(['/src']) + ->defaultValue(['/src/Document']) ->info( - 'If your project has different than `/src` source directory, or several of them,' . + 'If your documents are stored in a different folder than `/src/Document`, or several of them,' . 'you can specify them here to look automatically for ES documents.' ) ->end() diff --git a/README.md b/README.md index 60ae18e5..2f63ba8f 100644 --- a/README.md +++ b/README.md @@ -91,9 +91,9 @@ return [ Add minimal configuration for Elasticsearch bundle. ```yaml - # config/packages/ongr_elasticsearch.yaml ongr_elasticsearch: + source_directories: [/src/Document] analysis: filter: edge_ngram_filter: #-> your custom filter name to use in the analyzer below @@ -110,7 +110,6 @@ ongr_elasticsearch: indexes: App\Document\Product: hosts: [elasticsearch:9200] # optional, the default is 127.0.0.1:9200 - ``` > This is the very basic example only, for more information, please take a look at the [configuration][9] chapter.