Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

phudev95's avatar

I have Issue when use elasticsearch

Hi all. I have to search egine , so i use package "fairholm/elasticquent". But i have error when trying MyModel::createIndex($shards = null, $replicas = null); Missing404Exception in GuzzleConnection.php line 271 and ClientErrorResponseException in BadResponseException.php line 43: Client error response [status code] 404 [reason phrase] Not Found [url] http://117.3.36.11:8069/my_custom_index_name

my file config 'config' => [

     'hosts'     => ['117.3.36.11:8069'],
    'logging'   => true,
    'logPath'   => storage_path() . '/logs/elasticsearch.log',
    'logLevel'  => Monolog\Logger::WARNING,
]

Tks all

0 likes
2 replies
phudev95's avatar

And when I create Index , page loading not done.

MThomas's avatar

@PhanPhy I think you need to be a bit more elaborate in what you are doing en where things go wrong. For example what index page does not load, a Elastic page or a laravel blade page etc.

Please or to participate in this conversation.