Skip to content
Snippets Groups Projects

[RTIP] hotline : #200741 : better search with domain and filtre

Merged Sebastien ANDRE requested to merge hotline#200741_lenteurs_yonne_execution_d_un_domaine into master
Viewing commit b570b70a
Show latest version
2 files
+ 11
13
Preferences
Compare changes
Files
2
@@ -93,14 +93,12 @@ class Class_MoteurRecherche_MatchAxes
foreach (array_unique(array_filter($this->_and_facets)) as $facet)
$match_terms [] = Storm_Query_Terms::and([$facet]);
if ( ! $this->_multi_facets)
return $this;
$this->_multi_facets->eachDo(function($multi) use (&$match_terms)
{
if ($multi_facets = $multi->compose())
$match_terms [] = Storm_Query_Terms::and($multi_facets);
});
if ($this->_multi_facets)
$this->_multi_facets->eachDo(function($multi) use (&$match_terms)
{
if ($multi_facets = $multi->compose())
$match_terms [] = Storm_Query_Terms::and($multi_facets);
});
$this->_matchAllAxes()
->against_and(array_merge($match_terms,