I’m having an issue where if I submit a multi-word search query, I’m getting no results if I include the ‘text’ field in the search fields.
All of the words in the query appear in the title, so results should be found.
Here is the code that returns no results:
$results = $articles->search($query, [
'fields' => ['title', 'text'],
]);
But this code, where I search in any other fields along with the title, does work:
$results = $articles->search($query, [
'fields' => ['title', 'intro'],
]);
Has anyone else experienced this or know why this would be? The ‘text’ field is a textarea.
This is only an issue with multi-word queries — single word queries work when looking in the ‘text’ field.