Skip to content

Commit c5f6aea

Browse files
committed
added force type and force source to highlighting
1 parent 174c7f6 commit c5f6aea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Nest/DSL/HighlightFieldDescriptor.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public class HighlightFieldDescriptor<T> where T : class
4545
[JsonProperty("boundary_chars")]
4646
internal string _BoundaryChars { get; set; }
4747

48+
[JsonProperty("type")]
49+
internal string _Type { get; set; }
50+
4851
public HighlightFieldDescriptor<T> OnField(string field)
4952
{
5053
this._Field = field;
@@ -64,7 +67,11 @@ public HighlightFieldDescriptor<T> TagsSchema(string schema = "styled")
6467
this._TagsSchema = schema;
6568
return this;
6669
}
67-
70+
public HighlightFieldDescriptor<T> Type(string type)
71+
{
72+
this._Type = type;
73+
return this;
74+
}
6875
public HighlightFieldDescriptor<T> PreTags(string preTags)
6976
{
7077
this._PreTags = new[] { preTags };

0 commit comments

Comments
 (0)