I am trying to filter the _id field (index not included) in elasticsearch by range. Is it possible? If so, how can this be done? I read in the elasticsearch documentation that we can use “identifiers” to query on _id and type, but I don’t see how this can be done with a range filter. (I do not want to include the index on _id).
{ "from": 0, "size": 20, "query": { "match_all": {} }, "filter": { "range": { "_id": { "gt": "51f7b6b7710c42b136027581" } } }, "sort": { "pubdate": { "order": "desc" } } }
filter range elasticsearch
Douglas Carvalho Vasconcelos
source share