Version 1.x of Next/Elasticsearch .Net client was much richer with examples on how to set up the indexes and perform searches, etc. I've noticed this version seems to only give unit test style examples. Are there actual c#.net code examples to look at?
Reason i ask is upgrading from 1.x to 2.x (or 5) is so dramatically different in indexing, etc and i am having a very difficult time trying to figure out how to build the indexes, for example, using Nest. I understand much of it is to be used with AutoMap(), given the configuration options are supposed to be inferred or explicitly mapped using field attributes, but my indexes are much more complex. I have a lot of nested objects and fields that have multiple properties, based on very specific analizers, etc.
For example, i have the need to map an index of artists like this (multifield):
where artist.name is indexed using one custom analyzer, and artist.name.wo is indexed using another custom anazlyer, etc, etc.
there are no concrete examples on how to accomplish this using 2.x or 5 in the documentation.
please shore up the documentation with possible use-case examples and more detail. thank you!
here's an example of the way i used to map the artist.name field as mentioned above:
private static void SetPutMappingDescriptorNames(PutMappingDescriptor pm, string fieldName)
pm.Properties(props => props
.Object(x => x
.Name(fieldName).Properties(pp => pp.MultiField(
mf => mf
.Name(s => s.Name)
.Fields(f => f
.String(s => s.Name(o => o.Name).Analyzer("nameAnalyzer").OmitNorms())
.String(s => s.Name(o => o.Name.Suffix("ti")).Analyzer("titleAnalyzer").OmitNorms())
.String(s => s.Name(o => o.Name.Suffix("wo")).Analyzer("titleWordAnalyzer").OmitNorms())
.String(s => s.Name("st").Analyzer("stemmerWordAnalyzer"))
.String(s => s.Name(o => o.Name.Suffix("raw")).Index(FieldIndexOption.NotAnalyzed))