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.