You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Nest/Mapping/Types/Specialized/Ip/IpProperty.cs
+49
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,29 @@ public interface IIpProperty : IDocValuesProperty
24
24
25
25
[DataMember(Name="null_value")]
26
26
stringNullValue{get;set;}
27
+
28
+
/// <summary>
29
+
/// If <c>true</c>, malformed IP addresses are ignored. If <c>false</c> (default), malformed IP addresses throw an exception and reject the whole document.
30
+
/// Note that this cannot be set if the script parameter is used.
31
+
/// </summary>
32
+
[DataMember(Name="ignore_malformed")]
33
+
bool?IgnoreMalformed{get;set;}
34
+
35
+
/// <summary>
36
+
/// If this parameter is set, then the field will index values generated by this script, rather than reading the values directly from the source.
37
+
/// If a value is set for this field on the input document, then the document will be rejected with an error.
38
+
/// Scripts are in the same format as their runtime equivalent. Scripts can only be configured on long and double field types.
39
+
/// </summary>
40
+
[DataMember(Name="script")]
41
+
IInlineScriptScript{get;set;}
42
+
43
+
/// <summary>
44
+
/// Defines what to do if the script defined by the `script` parameter throws an error at indexing time.Accepts `reject` (default), which
45
+
/// will cause the entire document to be rejected, and `ignore`, which will register the field in the document's ignored metadata field and
46
+
/// continue indexing.This parameter can only be set if the `script` field is also set.
47
+
/// </summary>
48
+
[DataMember(Name="on_script_error")]
49
+
OnScriptError?OnScriptError{get;set;}
27
50
}
28
51
29
52
/// <inheritdoc cref="IIpProperty"/>
@@ -35,6 +58,15 @@ public IpProperty() : base(FieldType.Ip) { }
35
58
publicdouble?Boost{get;set;}
36
59
publicbool?Index{get;set;}
37
60
publicstringNullValue{get;set;}
61
+
62
+
/// <inheritdoc />
63
+
publicbool?IgnoreMalformed{get;set;}
64
+
65
+
/// <inheritdoc />
66
+
publicIInlineScriptScript{get;set;}
67
+
68
+
/// <inheritdoc />
69
+
publicOnScriptError?OnScriptError{get;set;}
38
70
}
39
71
40
72
/// <inheritdoc cref="IIpProperty"/>
@@ -48,12 +80,29 @@ public IpPropertyDescriptor() : base(FieldType.Ip) { }
0 commit comments