mirror of
https://github.com/YGGverse/Yo.git
synced 2025-01-30 16:34:22 +00:00
Disable keywords collection from headers as body index enabled
This commit is contained in:
parent
1f3ee435e9
commit
900e3a453f
@ -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…
x
Reference in New Issue
Block a user