File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/Tests/Tests/ClientConcepts/HighLevel/Indexing Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,12 @@ public class GeoIp
51
51
public void IngestionPipeline ( )
52
52
{
53
53
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
62
60
)
63
61
)
64
62
) ;
You can’t perform that action at this time.
0 commit comments