Bidzina Goginashvili

Bidzina Goginashvili

  • NA
  • 206
  • 26.5k

How To Enable fulltext in my Query in ES?

Jul 25 2019 5:10 AM
var response = client.Search<ModelName>(s => s
.Index("indexName")
.Query(q => q
.MultiMatch(m => m
.Fields(fields => fields
.Field(p => p.Field1, 0.2)
.Field(p => p.Field2, 1)
.Field(p => p.Field3, 0.5)
.Field(p => p.Field4, 0.4)
.Field(p => p.Field5, 0.8))
.Type(TextQueryType.MostFields)
.Query(term))));