diff --git a/src/Configuration/Configuration.php b/src/Configuration/Configuration.php index 6bbb102..f99aeab 100644 --- a/src/Configuration/Configuration.php +++ b/src/Configuration/Configuration.php @@ -1,5 +1,16 @@ end() ->end(); - return $treeBuilder; + return $treeBuilder; } } diff --git a/src/DependencyInjection/DsLuceneExtension.php b/src/DependencyInjection/DsLuceneExtension.php index ea630d7..7c834e5 100644 --- a/src/DependencyInjection/DsLuceneExtension.php +++ b/src/DependencyInjection/DsLuceneExtension.php @@ -1,11 +1,22 @@ 'Danish', diff --git a/src/Modifier/TermModifier.php b/src/Modifier/TermModifier.php index 33247e1..d4b592d 100644 --- a/src/Modifier/TermModifier.php +++ b/src/Modifier/TermModifier.php @@ -1,5 +1,16 @@ outputChannelContext->getIndexProviderOptions(); foreach ($multiSearchContainer->getSearchContainer() as $searchContainer) { - $query = $searchContainer->getQuery(); $eventData = $this->eventDispatcher->dispatchAction('build_index', [ diff --git a/src/OutputChannel/SearchOutputChannel.php b/src/OutputChannel/SearchOutputChannel.php index 0d74199..1573e65 100644 --- a/src/OutputChannel/SearchOutputChannel.php +++ b/src/OutputChannel/SearchOutputChannel.php @@ -1,5 +1,16 @@ getContextDispatchType())); + throw new \Exception(sprintf( + 'invalid context dispatch type "%s". cannot perform index provider dispatch.', + $contextDefinition->getContextDispatchType() + )); } } catch (\Throwable $e) { throw new ProviderException($e->getMessage(), DsLuceneBundle::PROVIDER_NAME, $e); diff --git a/src/Service/LuceneHandler.php b/src/Service/LuceneHandler.php index 9104582..e29d785 100644 --- a/src/Service/LuceneHandler.php +++ b/src/Service/LuceneHandler.php @@ -1,12 +1,23 @@