I have a set of users with field_first_name and field_last_name, and i want to create a user search using the search api, to search for users using those fields, but it doesn't seems to be working.
Here is my code:
$query = Index::load('default_index') ->query(array( 'offset' => 0, 'limit' => 12, )) ->keys($text) ->addCondition('search_api_datasource', 'entity:user') ->execute();
It's not fetching any of my users per name. I am missing something?