My problem here is that, I want to create a simple search engine.
I've got it to work by using 2 queries. The first one searches for the full search term and the second one searches for all of the matches word by word.
For example if You search for "The long lasting i don't know"
, then it will search for "The long lasting i don't know"
, then for "The"
, then "long"
, and so on.
But I want to use pagination and It would mess up the results, so I need it in 1 query.
Is it achieveable with the IN
operator?