mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-22 12:36:11 +01:00
FEATURE: Finish filter configuration for geo_search
This commit is contained in:
parent
636ef78a14
commit
8d343ee97f
1 changed files with 1 additions and 8 deletions
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue