PHRAS-2372 strict thesaurus search when indexing

This commit is contained in:
Nicolas Maillat
2019-01-09 17:00:06 +01:00
committed by GitHub
parent 55c61b0fe0
commit 0be1f5d140

View File

@@ -60,7 +60,7 @@ class Thesaurus
// TODO Use bulk queries for performance
$concepts = array();
foreach ($terms as $index => $term) {
$strict = ($term instanceof AST\TermNode); // a "term" node is [strict group of words]
$strict |= ($term instanceof AST\TermNode); // a "term" node is [strict group of words]
$concepts[] = $this->findConcepts($term, $lang, $filters[$index], $strict);
}