Hi there! im very new to Elastic Search and just need some help.
Im trying to performe an complex query in c# with my own list of "Indexes", "Dateranges" and "Terms" as well but with out success..
result = client.Search<Event>(e => e.Index(customIndex) .Query(q => q.DateRange(dr => dr .Boost(1.1) .Field("DateTime") .GreaterThanOrEquals(dateFrom) .LessThanOrEquals(dateTo) .Format("dd/MM/yyyy") ) && q.Terms(mt => mt. Field("RuleID") .Terms(legacyIDs) ) ) .From(pageSize * page) .Size(pageSize) .Sort(ss => ss.Descending("Date") .Field(fie => fie.UnmappedType(FieldType.Date))) );
Do i Missed something?
The NEST Client it says everythings went well, but the result its different.
Its my approach correct? i think the problem it is in the daterange
thanks in advance