Skip to content

Commit 3db7c6c

Browse files
committed
Add ignore_above to properties test
1 parent 1a56f3d commit 3db7c6c

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/Tests/Nest.Tests.Unit/Core/Map/Properties/PropertiesTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public void StringProperty()
3131
.TermVector(TermVectorOption.WithPositionsOffsets)
3232
.Boost(1.1)
3333
.CopyTo(p => p.Content, p => p.Country)
34+
.IgnoreAbove(20)
3435
)
3536
)
3637
);
Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
{
2-
"elasticsearchprojects": {
3-
"properties": {
4-
"name": {
5-
"type": "string",
6-
"similarity": "mysimilarity",
7-
"index_name": "my_crazy_name_i_want_in_lucene",
8-
"store": true,
9-
"index": "analyzed",
10-
"term_vector": "with_positions_offsets",
11-
"boost": 1.1,
12-
"null_value": "my_special_null_value",
13-
"norms": {
2+
"elasticsearchprojects": {
3+
"properties": {
4+
"name": {
5+
"type": "string",
6+
"similarity": "mysimilarity",
7+
"index_name": "my_crazy_name_i_want_in_lucene",
8+
"store": true,
9+
"index": "analyzed",
10+
"term_vector": "with_positions_offsets",
11+
"boost": 1.1,
12+
"null_value": "my_special_null_value",
13+
"norms": {
1414
"enabled": true,
1515
"loading": "eager"
1616
},
17-
"omit_norms": true,
18-
"index_options": "positions",
19-
"index_analyzer": "standard",
20-
"search_analyzer": "standard",
21-
"include_in_all": true,
22-
"position_offset_gap": 1,
23-
"copy_to": [ "content", "country" ]
24-
}
25-
}
26-
}
17+
"omit_norms": true,
18+
"index_options": "positions",
19+
"index_analyzer": "standard",
20+
"ignore_above": 20,
21+
"search_analyzer": "standard",
22+
"include_in_all": true,
23+
"position_offset_gap": 1,
24+
"copy_to": [ "content", "country" ]
25+
}
26+
}
27+
}
2728
}

0 commit comments

Comments
 (0)