Skip to content

Commit 94aea2f

Browse files
committed
Map TimeSpan StringDuration as a keyword datatype
Default inferred mapping for TimeSpan is numeric long datatype.
1 parent 9ac05c4 commit 94aea2f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Tests/Framework/ManagedElasticsearch/NodeSeeders/DefaultSeeder.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ private void CreateProjectIndex()
137137
.Name(p => p.ProjectName)
138138
.Index(false)
139139
)
140+
.Keyword(t => t
141+
.Name(p => p.StringDuration)
142+
)
140143
)
141144
)
142145
)

0 commit comments

Comments
 (0)