Date range query with QueryStringBuilder


(Josef Fritzer) #1

Hi guys,

My document looks like that JSON:

"SubmissionVersion_state":"NOT_COMMISSIONED",
"SubmissionVersion_remark":"",
"SubmissionVersion_dueDate":{
"year":2018,
"month":6,
"dayOfMonth":17,
"hourOfDay":13,
"minute":2,
"second":29
},
"SubmissionVersion_sum":300000.0,

I wanna query by date range with a QueryStringBuilder(https://www.elastic.co/guide/en/elasticsearch/reference/6.3/query-dsl-query-string-query.html#_ranges) on field "SubmissionVersion_dueDate".

Query: ConstructionProjectElasticSearch_constructionProject.ConstructionProject_clients.Client_lots.Lot_projectVariants.ProjectVariant_submissionVersions.SubmissionVersion_dueDate:[2017-07-11 TO 2018-07-27]

But I get no result or error. Anybody have any idea how this could work?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.