Hello everybody,
I have a use case where I need to search in es for a date field.
However, this is not only a simple range but I wanna ignore the year.
Hence I saw this in the es docu:
{
"range" : {
"born" : {
"gte": "01/01/2012",
"lte": "2013",
"format": "dd/MM/yyyy||yyyy"
}
}
}
and I tried this:
{
"range" : {
"born" : {
"gte": "01/01",
"lt": "02/01",
"format": "dd/MM"
}
}
}
I had a document with a range date field which was set to 01.01.2014 but the above query didn't match my document.
Can anybody point me in some direction? Basically I wanna search for date fields but ignoring the year.
PS. I'm using es 2.X
Many thanks!