Wednesday, August 19, 2020

Elastic index is not updated when POST is updated

I want to update few posts in Elastic has stale contents. I made following script, but it seems that it's not updating in Elastic.

PHP:

<?php
$startTime = microtime(true);

$fileDir = dirname(__FILE__);


require($fileDir . '/library/XenForo/Autoloader.php');

XenForo_Autoloader::getInstance()->setupAutoloader($fileDir . '/library');

XenForo_Application::initialize($fileDir . '/library', $fileDir);

XenForo_Application::set('page_start_time', $startTime);


// select query to make......

Elastic index is not updated when POST is updated

source https://xfmaster.com/threads/elastic-index-is-not-updated-when-post-is-updated.15529/

No comments:

Post a Comment