sunspot_mongo
sunspot_mongo copied to clipboard
Only return results when full text is fully match even not case insensitive
I have Category model
class Category
include Mongoid::Document
include Sunspot::Mongo
field :name
searchable do
text :name
end
end
I have Category record with name 'Laundry'
I only get results when I do
s = Category.solr_search do
fulltext "Laundry"
end
Otherwise it returns empty array for "lau" "Lau" "laundry" etc