Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

elasticsearch php filter range

$params1 = [
'index' => 'joborders',
'type' => 'joborder',
'body' => [
    'query' => [
        'bool' => [
            'filter' => [
                'range' => [ 'date_modified' => ['gt'=>$duration,'lt'=>$today,'boost'=> '2.0'] ]
            ],
            'must' => [
                'match' => [ 'description' => $wildCardString ]
            ]
        ]
    ]
 ]
];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #elasticsearch #php #filter #range
ADD COMMENT
Topic
Name
2+2 =