we expect to perform a hybrid search that combines vector and keyword searches.
However, due to the current implementation, we can't do this without directly manipulating internal classes to build our query.
I suggest we consider an approach where using knn extends the current query rather than altering it. If we need to make changes, we can always use the reset method.
When we use the code
$client->index('test')->search("query term")->knn(...)
we expect to perform a hybrid search that combines vector and keyword searches.
However, due to the current implementation, we can't do this without directly manipulating internal classes to build our query.
I suggest we consider an approach where using
knn
extends the current query rather than altering it. If we need to make changes, we can always use thereset
method.