Skip to content

Commit e80b958

Browse files
committed
updated fluent mapping example with custom _all field mapping
1 parent 338b69d commit e80b958

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Tests/Nest.Tests.Unit/Core/Map/FluentMappingFullExampleTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ public void MapFluentFull()
118118
)
119119
)
120120
.Properties(props => props
121+
.String(s=>s
122+
.Name("_all")
123+
.IndexAnalyzer("nGram_analyzer")
124+
.SearchAnalyzer("whitespace_analyzer")
125+
)
121126
.String(s => s
122127
.Name(p => p.Name)
123128
.IndexName("my_crazy_name_i_want_in_lucene")

0 commit comments

Comments
 (0)