Play 2.3.7 Scala で ElasticSearch を使用しようとしています。エラスティック検索をインストールし、インデックスを追加して、稼働中です (curl を使用してテスト済み)。ただし、elastic4s を再生コントローラー内で動作させるのに苦労しています。
シンプルなリモート URL を使用してクライアントを作成しました
val client = ElasticClient.remote("localhost", 9300)
次に、クライアントで実行しようとします。
client.execute {
ElasticDsl.index.into("test/test").id(id).fields (
"title" -> title,
"uid" -> uid
)
}
これはアクション内で実行されますが、次のエラーが発生します。
could not find implicit value for parameter executable: com.sksamuel.elastic4s.Executable[com.sksamuel.elastic4s.IndexDefinition,R,Q]