I am refactoring my code and found out that I use both keywords
and fulltext
to search. The use of fulltext
is used at Readme and keywords
is used in Wiki. There was a discussion mentioning that those are different ways of doing the same thing, however it does not explain what the differences are. Plus I can't find keywords
in the API doc.
So can those two be used inter-changeably? What are the differences between them? What are the limitations of each? Anything to watch out for?
There is no difference between them, keywords is an alias for fulltext
alias_method :keywords, :fulltext
The line above is defined in sunspot/lib/sunspot/dsl/standard_query.rb
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With