string postCode = "SW3"; var response = elasticClient.Search<AddressDom>(s => s.Index("new_address") .Type("uk") .From(0) .Take(100) .Query(qry => qry .Bool(b => b .Must(m => m .QueryString(qs => qs .DefaultField("Postcode") .Query(postCode + "*").DefaultOperator(Operator.And))))) .Sort(x => x.Field(cc => cc.Field("AreaTypeId").Descending())));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)