Skip to content

Commit

Permalink
IBX-152: Optimized Legacy Search Engine FullText Word Indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs authored Aug 8, 2023
1 parent e7cebd1 commit 576d699
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function index(FullTextData $fullTextData)
$wordCount = 0;
$placement = 0;

$this->connection->beginTransaction();
// Remove previously indexed content if exists to avoid keeping in index removed field values
$this->remove($fullTextData->id);
foreach ($fullTextData->values as $fullTextValue) {
Expand Down Expand Up @@ -156,7 +157,6 @@ public function index(FullTextData $fullTextData)
}

$wordIDArray = $this->buildWordIDArray(array_keys($indexArrayOnlyWords));
$this->connection->beginTransaction();
for ($arrayCount = 0; $arrayCount < $wordCount; $arrayCount += 1000) {
$placement = $this->indexWords(
$fullTextData,
Expand Down

0 comments on commit 576d699

Please sign in to comment.