Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:30:59+00:00 2026-06-10T02:30:59+00:00

In a Rails app I started using sunspot => https://github.com/sunspot/sunspot/blob/master/README.md Everything went OK until

  • 0

In a Rails app I started using sunspot => https://github.com/sunspot/sunspot/blob/master/README.md

Everything went OK until I noticed this (taken from the rails-console):

1.9.3p194 :002 > MyModel.search{fulltext "leon"}.results
=> [#<MyModel id: 16, name: "Leon">]
1.9.3p194 :003 > MyModel.search{fulltext "león"}.results
=> [#<MyModel id: 18, name: "León">]

How can I tell the system not to make distinction between “leon” and “león”
(I want smth like search{fulltext “leon”} => [#MyModel id: 16 … , #MyModel id: 18…])

I’ve been looking for this problem and I’ve found every time the same response:

With this line in Gemfile works meanwhile the next release of rsolr:
gem ‘rsolr’, :git => “https://github.com/mwmitchell/rsolr.git&#8221;

thx

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:31:01+00:00Added an answer on June 10, 2026 at 2:31 am

    Thx for the responses. At least I’ve solved it right last night with anohter idea I’ve taked from http://codeshooter.wordpress.com/2011/01/13/full-text-search-in-in-rails-with-sunspot-and-solr/

    the idea is
    in Restaurant.rb

    text :name do 
      self.name.my_normalize
    end
    

    and the function

    to_s.mb_chars.normalize(:kd).gsub(/[^\x00-\x7F]/,'').downcase
    

    that line works with strings like “äáàÁÄÀ” — “aaaaaa”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jruby rails app and I've just started using bundler for gem
I have started developing a new Rails app on my server using RVM, Rails
I have a Rails 3 app and just noticed that when using Chrome (on
I'm doing a little rails app for a prototype. I started off using a
I've just started using the brakeman gem to explore my rails app for security
I just started using Google Cloud Storage with a Rails 3 app. I am
I'm using Devise and OmniAuth (Facebook) in a Rails 3 app. I just started
I have started using devise for my rails app, however i need to make
I just started a new rails app using rails new myapp --database=postgresql Then I
I started writing functional tests for my rails app today. I use the RESTful

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.