sunspot_mongo icon indicating copy to clipboard operation
sunspot_mongo copied to clipboard

Only return results when full text is fully match even not case insensitive

Open shahfaizanali opened this issue 8 years ago • 0 comments

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

shahfaizanali avatar May 30 '16 13:05 shahfaizanali