FEATURE: Finish filter configuration for geo_search

This commit is contained in:
Daniel Siepmann 2017-10-22 17:34:48 +02:00
parent 636ef78a14
commit 8d343ee97f
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4

View file

@ -70,8 +70,6 @@ class QueryFactory
// Better approach would be something like DQL to generate query and build result in the end. // Better approach would be something like DQL to generate query and build result in the end.
$this->addFactorBoost($query); $this->addFactorBoost($query);
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($query, '$query', 8, false);die;
$this->logger->debug('Generated elasticsearch query.', [$query]); $this->logger->debug('Generated elasticsearch query.', [$query]);
return new \Elastica\Query($query); return new \Elastica\Query($query);
} }
@ -161,7 +159,7 @@ class QueryFactory
$filter[] = $this->buildFilter( $filter[] = $this->buildFilter(
$name, $name,
$value, $value,
$this->configuration->getIfExists('searching.filter.' . $name) ?: [] $this->configuration->getIfExists('searching.mapping.filter.' . $name) ?: []
); );
} }
@ -201,13 +199,8 @@ class QueryFactory
$filter = []; $filter = [];
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($name, '$name', 8, false);
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($value, '$value', 8, false);
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($config, '$config', 8, false);die;
if (isset($config['fields'])) { if (isset($config['fields'])) {
foreach ($config['fields'] as $elasticField => $inputField) { foreach ($config['fields'] as $elasticField => $inputField) {
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($value, '$value', 8, false);die;
$filter[$elasticField] = $value[$inputField]; $filter[$elasticField] = $value[$inputField];
} }
} }