I have index with mappings type like this:
{
"mappings":{
"logs_june":{
"_timestamp":{
"enabled":"true"
},
"properties":{
"logdate":{
"type":"date",
"format":"dd/MM/yyyy HH:mm:ss"
}
}
}
}
}
And there is many doc in it(). When I try to get the docs with search query below it throws SearchPhaseExecutionException .. all shards failed.. bla bla
What is it problem that I must fix ?
$queryFilter = '{
"query":{
"filtered":{
"query":{
"match_all":{}
},
"filter":{
"range":{
"logdate":{
"gte":"00/00/2014 00:00:00 "
}
}
}
}
}
}';
$params['body'] = $queryFilter;
$params['index'] = 'accesslog';
$params['size'] = 1000;
$query = $elasticSearch->search($params);