Closed Djagannath closed 3 years ago
You can get index data as an array and transform in into json:
/**
*@var Index $searchIndex
*/
$indexData = $searchIndex->getData();
$indexData = json_encode($indexData);
Save into your database (insert row)
Insert into myTable (indexDataColumn) Values ({$indexData});
You can get index data as an array and transform in into json:
/** *@var Index $searchIndex */ $indexData = $searchIndex->getData(); $indexData = json_encode($indexData);
Save into your database (insert row)
Insert into myTable (indexDataColumn) Values ({$indexData});
thx
Can I save index in db and how?