Skip to content

Commit ad9800f

Browse files
committed
Use 7.x mapping in Pipeline doc
Fix compiler warning
1 parent 54b1ed1 commit ad9800f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Tests/Tests/ClientConcepts/HighLevel/Indexing/Pipelines.doc.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,12 @@ public class GeoIp
5151
public void IngestionPipeline()
5252
{
5353
client.CreateIndex("people", c => c
54-
.Mappings(ms => ms
55-
.Map<Person>(p => p
56-
.AutoMap() //<1> automatically create the mapping from the type
57-
.Properties(props => props
58-
.Keyword(t => t.Name("initials")) //<2> create an additional field to store the initials
59-
.Ip(t => t.Name(dv => dv.IpAddress)) //<3> map field as IP Address type
60-
.Object<GeoIp>(t => t.Name(dv => dv.GeoIp)) //<4> map GeoIp as object
61-
)
54+
.Map<Person>(p => p
55+
.AutoMap() //<1> automatically create the mapping from the type
56+
.Properties(props => props
57+
.Keyword(t => t.Name("initials")) //<2> create an additional field to store the initials
58+
.Ip(t => t.Name(dv => dv.IpAddress)) //<3> map field as IP Address type
59+
.Object<GeoIp>(t => t.Name(dv => dv.GeoIp)) //<4> map GeoIp as object
6260
)
6361
)
6462
);

0 commit comments

Comments
 (0)