The current full-text search will return the AND collection results,for
example,if we use Article.search(“aa bb”),then the articles that include
“aa” and “bb” in the fields will be returned,how to return the articles
that include “aa” OR “bb” effectly? A stumb method is to setup two
queries respectly and collect them together with remove the repeated
items,how ever paginator will be very difficult to use because it is
hard to locate the offset when processing the next page.
How google do that?
if we input aa bb in the search box,the results has the relation of OR
but not AND,with paginator followed.
Can anybody help me with that?
Thanks a lot