Created
February 28, 2020 03:45
-
-
Save edysmp/609a87b506a52bfb193961d155e79ee2 to your computer and use it in GitHub Desktop.
Clone search api index
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$index = search_api_index_load('default_node_index'); | |
unset($index->id); | |
$index->name = 'My Index'; | |
$index->machine_name = 'my_index'; | |
$index->save(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment