Function_Score Filter on _ttl

(Fabian Köstring) #1

Hey there!
I have a function_score query and i try to get only documents with a ttl
greater than or equals a specific value.
But it seems that the query doesnt work. I dont get the expected results.

GET index1/_search
"query": {
"function_score": {
"bool": {
"must": [
"range": {
"_ttl": {
"gte" : 87105050

In my results there are documents which have a ttl lower then 87105050. How
can this happen?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2