mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 10:23:17 +00:00
PHRAS-2372 strict thesaurus search when indexing
This commit is contained in:
@@ -60,7 +60,7 @@ class Thesaurus
|
|||||||
// TODO Use bulk queries for performance
|
// TODO Use bulk queries for performance
|
||||||
$concepts = array();
|
$concepts = array();
|
||||||
foreach ($terms as $index => $term) {
|
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);
|
$concepts[] = $this->findConcepts($term, $lang, $filters[$index], $strict);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user