Instantsearch - match any

I’d like to know if Algolia can support this use case:

If my index contains the following:

{
      "name": "Wayne Gretzky",
      "sport": "hockey"
    }
{
      "name": "Michael Jordan",
      "sport": "basketball"
    }
{
      "name": "Tiger Woods",
      "sport": "golf"
    }
{
      "name": "Lebron James",
      "sport": "basketball"
    }

If I type in Basketball Hockey in the search query, I’d like to receive

Lebron James
Michael Jordan
Wayne Gretzky

Q1: Is this use case currently supported in Algolia?

Q2: Am I able to weight these two keywords?

Hello,

One way you can solve it is the removeWordsIfNoResults settings. You can set words to be allOptional.

allOptional: When a query does not return any results, make a second attempt treating all words as optional. This is equivalent to transforming the implicit AND operator applied between query words to an OR.

Thank you, that worked!