I'm using NEST and Elasticsearch.Net versions 1.9.2. I'm trying to create a FieldValueFactor scoring function which all seems to work properly except I can't figure out how to specify the field I want to use.
.Functions(fsd => fsd.FieldValueFactor(d => d.Field(???).Missing(0)))
I'd like to just specify a string literal here of the field I want to use as the value factor field just like I've done when I create the query DSL by hand. However, there isn't an overload for that. The only .Field() API takes:
Even if I created an expression tree, what should it look like? All I want to do is indicate that I want, say, the value in the "kumquat" field used as the factor. Again, it's easy to do when crafting the query DSL by hand so I'm confused by this API.