We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29fd2c8 commit 7369c4dCopy full SHA for 7369c4d
new_docs/contents/nest/indices/put-mapping.markdown
@@ -85,3 +85,20 @@ You can also create mappings on the fly:
85
86
typeMapping.Properties.Add("name", property);
87
this.ConnectedClient.Map(typeMapping);
88
+
89
+## Multifield Mapping
90
+To create multifield type you can use following example.
91
92
+ var result = this._client.Map<ElasticsearchProject>(m => m
93
+ .Properties(props => props
94
+ .MultiField(s => s
95
+ .Name(p => p.Name)
96
+ .Path(MultiFieldMappingPath.Full)
97
+ .Fields(pprops => pprops
98
+ .String(ps => ps.Name(p => p.Name).Index(FieldIndexOption.not_analyzed))
99
+ .String(ps => ps.Name(p => p.Name.Suffix("searchable")).Index(FieldIndexOption.analyzed))
100
+ )
101
+ ))
102
+ );
103
104
0 commit comments