Calculate age from birthday (type: date)

Hello!
As I think it's stupid to store the age itself, I need to know if and
how it's possible to calculate the age from the stored birthday, to
filter searchresults by the calculated age.
[…]
"dob":{
"include_in_all":false,
"format":"dateOptionalTime",
"type":"date"
},
[…]

Hello,

Date is stored as unix timestamp with milliseconds precision (java-style).
Try to use it like long and calculate age accordingly.

Regards,
Alexandr Vasilenko

2012/2/8 c.bieser christian.bieser@gmail.com

Hello!
As I think it's stupid to store the age itself, I need to know if and
how it's possible to calculate the age from the stored birthday, to
filter searchresults by the calculated age.
[…]
"dob":{
"include_in_all":false,
"format":"dateOptionalTime",
"type":"date"
},
[…]

Hello Alexandr Vasilenko,
could you give me an Example?
I even don't know if I have to extend the mapping or if I have to
calculate it while querying or filtering.
Kind regards,
Christian Bieser

On 8 Feb., 09:44, Alex Vasilenko aa.vasile...@gmail.com wrote:

Hello,

Date is stored as unix timestamp with milliseconds precision (java-style).
Try to use it like long and calculate age accordingly.

Regards,
Alexandr Vasilenko

Okay, I found out that it's not necessary to calculate the age to use
it with the range-filter as it's possible to use the date-values with
this filter.