I have an index of binary files created by fscrawler(has a default mapping).
I am querying my index using php-elasticsearch:
if ($q2 == '') {
$params = [
'index' => 'trial2',
'body' => [
'query' => [
'term' => [
'content' => $q
]
]
]
];
$query = $client->search($params);
$data['q'] = $q;
}
I am trying to do an exact full text search on the content field (body). how do i do it?