Skip to content

Commit dcb26a1

Browse files
committed
simplify raw string
1 parent 0e68c58 commit dcb26a1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Elastic.Markdown/Exporters/Elasticsearch/ElasticsearchExporter.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protected static string CreateMappingSetting() =>
183183
""";
184184

185185
protected static string CreateMapping(string? inferenceId) =>
186-
$$$$""""
186+
$$"""
187187
{
188188
"properties": {
189189
"url" : {
@@ -229,7 +229,7 @@ protected static string CreateMapping(string? inferenceId) =>
229229
"keyword": {
230230
"type": "keyword"
231231
}
232-
{{{{(!string.IsNullOrWhiteSpace(inferenceId) ? $$""", "semantic_text": {{{InferenceMapping(inferenceId)}}}""" : "")}}}}
232+
{{(!string.IsNullOrWhiteSpace(inferenceId) ? $$""", "semantic_text": {{{InferenceMapping(inferenceId)}}}""" : "")}}
233233
}
234234
},
235235
"url_segment_count": {
@@ -243,10 +243,10 @@ protected static string CreateMapping(string? inferenceId) =>
243243
"search_analyzer": "highlight_analyzer",
244244
"term_vector": "with_positions_offsets"
245245
}
246-
{{{{(!string.IsNullOrWhiteSpace(inferenceId) ? AbstractInferenceMapping(inferenceId) : AbstractMapping())}}}}
246+
{{(!string.IsNullOrWhiteSpace(inferenceId) ? AbstractInferenceMapping(inferenceId) : AbstractMapping())}}
247247
}
248248
}
249-
"""";
249+
""";
250250

251251
private static string AbstractMapping() =>
252252
"""

0 commit comments

Comments
 (0)