We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a0dc5 commit 5904a8aCopy full SHA for 5904a8a
spark-sql-application/src/main/scala/org/apache/spark/sql/OSClient.scala
@@ -71,6 +71,15 @@ class OSClient(val flintOptions: FlintOptions) extends Logging {
71
using(flintClient.createClient()) { client =>
72
val request = new CreateIndexRequest(osIndexName)
73
request.mapping(mapping, XContentType.JSON)
74
+ .settings(
75
+ """
76
+ | {
77
+ | "auto_refresh": "true",
78
+ | "refresh_interval": "1 Second",
79
+ | }
80
+ |""".stripMargin,
81
+ XContentType.JSON
82
+ )
83
84
try {
85
client.createIndex(request, RequestOptions.DEFAULT)
0 commit comments