0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【ElasticSearchエラー】Specifying types in urls has been deprecated

0
Last updated at Posted at 2019-11-22
  • 現象

LaravelでElasticSearch使ってる時にsearchメソッド呼んだ時に死亡。

  • 対策

7.0.0バージョンからurlでの型指定が廃止になってるので、バージョン下げれば動いた。
バージョン下げるかフォーマット変えるかすれば良い。

composer require elasticsearch/elasticsearch:7.1
>
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Downgrading elasticsearch/elasticsearch (v7.4.0 => v7.1.0): Loading from cache
Writing lock file
Generating optimized autoload files

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?