PHRAS-3389_use-only-conceptpaths-from-selected-dbs_MASTER

fix : fixed [] search (thesaurus) caused by bad thesaurus hydration during record indexing
This commit is contained in:
jygaulier
2021-04-12 15:57:44 +02:00
parent 63bee24775
commit 00979f2d6d
4 changed files with 58 additions and 32 deletions

View File

@@ -46,7 +46,8 @@ class QueryCompiler
// TODO We must restrict thesaurus matching for IN queries, and only
// search in each field's root concepts.
$nodes = $query->getTermNodes();
$concepts = $this->thesaurus->findConceptsBulk($nodes, $context->getDataboxes());
$filter = Thesaurus\Filter::byDataboxes($context->getDataboxes());
$concepts = $this->thesaurus->findConceptsBulk($nodes, null, $filter, false);
foreach ($concepts as $index => $termConcepts) {
$node = $nodes[$index];