I've been trying to search using 'match' and 'fuzzy', but I keep getting all of the documents, whether they match or not.
I've tried these 3 incarnations of my search:
1.
$params = [
'index' => 'my_engine',
'type' => 'my_type',
'body' => [
'query' => [
'fuzzy' => [
'_all' => $keyword
]
]
]
];
$params = [ 'index' => 'my_engine', 'type' => 'my_type', 'body' => [ 'query' => [ 'match' => [ 'title' => 'members' ] ] ] ];
$params['index'] = 'my_engine'; $params['type'] = 'my_type'; $params['body']['query']['match']['title'] = 'members';
Did I miss something during indexing? I didn't provide any mapping.