mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-01 18:25:29 +00:00
Disable keywords collection from headers as body index enabled
This commit is contained in:
parent
1f3ee435e9
commit
900e3a453f
1 changed files with 3 additions and 0 deletions
|
|
@ -314,6 +314,8 @@ foreach($index->search('')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get keywords from headers
|
// 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) {
|
foreach ($crawler->filter('h1,h2,h3,h4,h5,h6')->each(function($node) {
|
||||||
|
|
||||||
return $node->text();
|
return $node->text();
|
||||||
|
|
@ -346,6 +348,7 @@ foreach($index->search('')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Keep keywords unique
|
// Keep keywords unique
|
||||||
$keywords = array_unique(
|
$keywords = array_unique(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue