Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want to retrive two ddl using linq in that a field named smc has duplicate values and i want to get that columns as distinct values
How to include that smc column and separate it

What I have tried:

Elastic.Search<my_log>(s => s
                               .Index(defaultIndex)
                               .Size(1000)
                               .Query(q => q
                               .DateRange(r => r
                               .Field(p => p.Time)
                               .GreaterThanOrEquals(fldFromDate)
                               .LessThan(fldToDate)
                               .TimeZone("+05:30"))
                               && q.Match(m => m.Field(f => f.fldtype).Query(fldType))
                               && q.Match(m => m.Field(f => f.fldstatus).Query(status))
                               )
                               .Sort(p => p.Descending("@time")));
                   data = (from hits in responsedata.Hits select hits.Source).ToList();
Posted
Updated 18-Sep-22 20:31pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900