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