From 900e3a453fd40cc9a11c4c943cc80bbe0e814784 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 21 Mar 2024 03:46:58 +0200 Subject: [PATCH] Disable keywords collection from headers as body index enabled --- src/cli/document/crawl.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cli/document/crawl.php b/src/cli/document/crawl.php index 67e414c..a9c186a 100644 --- a/src/cli/document/crawl.php +++ b/src/cli/document/crawl.php @@ -314,6 +314,8 @@ foreach($index->search('') } // Get keywords from headers + /* Disable keywords collection from headers as body index enabled + foreach ($crawler->filter('h1,h2,h3,h4,h5,h6')->each(function($node) { return $node->text(); @@ -346,6 +348,7 @@ foreach($index->search('') } } } + */ // Keep keywords unique $keywords = array_unique(