Skip to content

Commit b56f334

Browse files
committed
Add multifieldmap also the GenericMapping
1 parent e02ce22 commit b56f334

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/Nest/Domain/Mapping/Types/GenericMapping.cs

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,12 @@ namespace Nest
1010
/// in order to specify "{dynamic_template}" the type, or if you have some plugin that exposes a new type.
1111
/// </summary>
1212
[JsonObject(MemberSerialization.OptIn)]
13-
public class GenericMapping : IElasticType, IElasticCoreType
13+
public class GenericMapping : MultiFieldMapping, IElasticType, IElasticCoreType
1414
{
15-
16-
public PropertyNameMarker Name { get; set; }
17-
18-
[JsonProperty("type")]
19-
public TypeNameMarker Type { get; set; }
20-
21-
[JsonProperty("similarity")]
22-
public string Similarity { get; set; }
15+
public GenericMapping()
16+
{
17+
Type = string.Empty;
18+
}
2319

2420
/// <summary>
2521
/// The name of the field that will be stored in the index. Defaults to the property/field name.
@@ -39,9 +35,6 @@ public class GenericMapping : IElasticType, IElasticCoreType
3935
[JsonProperty("boost")]
4036
public double? Boost { get; set; }
4137

42-
[JsonProperty("include_in_all")]
43-
public bool? IncludeInAll { get; set; }
44-
4538
[JsonProperty("term_vector")]
4639
public string TermVector { get; set; }
4740

0 commit comments

Comments
 (0)