Tomcat, Solr And Special Characters

If Solr does not return any results when looking for words with special characters, this post could explain why.

Solr's example schema.xml comes with the charFilter element to map special chars to their ASCII equivalents. Look for the following in the "index" and "query" section of the solr.TextField class:

<charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>

You can open the mapping-ISOLatin1Accent.txt file to see what gets mapped to what.

What often gets overlooked is that Tomcat, which takes the search request URI, also has to properly encode those special characters or they'll end up like gibberish when it reaches Solr. This is simple to do. The URIEncoding="UTF-8" attribute needs to be added to the Connector element in Tomcat's conf/server.xml

It is not part of a standard Tomcat installation, which is what most people use when setting up Solr.

This is what the Connector should look like:

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8" />

Now, when looking for "bacteriën" (bacteria) or "financiën" (finance) Tomcat won't mess up the 'ë', Solr will properly map them and look for "bacterien" and "financien".

At the time of this writing, a patch for this issue just got applied to Solr 4.1 which will take care of the encoding for us. It will ask the HTTPRequest for its character encoding and convert it correctly.

Comments

Les montres sont d'une grande importance dans la vie replique cartier quotidienne. Afin de ne pas brûler beaucoup de budget, de replique montres Cartier devraient devenir vos meilleures options. Les gens peuvent se sentir exactement parfait lorsque vous portez ces répliques de montres. La vie avec la compagnie d'une réplique montre Cartier peut devenir de mieux en mieux.

Select your agent wisely when you want to sell or buy a home. You should make sure the agent is experienced if you wan to buy or sell any real estate. An experienced real estate agent will help ensure that you home is sold quickly and the best price. www.kerryfinnrealestate.com

Various studies, mainly on women with early-stage breast cancer, suggest that physical activity can improve cancer survivors' quality of life, lessen the impact of treatment side effects and help in their overall recovery. But more data are needed. While exercise, even just living an active life, www.cancerexercisetrainer.com

This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works.
water purification adya clarity

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family.
MDR Glass

Your blog provided us with valuable information to work with. every tips of your post are awesome. Thanks a lot for sharing. Keep blogging,
https://www.rebelmouse.com/troublespottrainingreviews/

i read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future..
international sale contract

This is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here!
International Distribution Contract Template

I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.
wedding band birmingham

These are some great tools that i definitely use for SEO work. This is a great list to use in the future..
dog walking franchise

I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious...
Web Design

Wow i can say that this is another great article as expected of this blog.Bookmarked this site..
http://searchsimplicity.com

I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog!
Compacteurs monoblocs de carton

I really appreciate the kind of topics you post here. Thanks for sharing us a great information that is actually helpful. Good day!
sonakshi sinha

Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. If possible, such as gain knowledge, would you mind updating your blog with additional information? It is very useful for me.
photography blog

I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post.
Limo Services

I really appreciate this wonderful post that you have provided for us. I assure this would be beneficial for most of the people.

entretien ménager

It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks.
Ottawa Movers

Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.
CSCOPE Login

The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...
Silicone Baking Mat

Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.
Sham Idrees

I just couldn't leave your website before telling you that I truly enjoyed the top quality info you present to your visitors? Will be back again frequently to check up on new posts.
buy instagram accounts #1 company

Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.
moving from ottawa to toronto

Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.
buy twitter followers

This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things.
entretien ménager

Everyone agrees on a broad level that small businesses are vital to the American economy. However, most people would be surprised to know just how important. united small business

After stepping in wholesale business circle, the first thing you do is to choose wholesale products that you will sell ahead to your customers. Once a niche is chosen, the real quest begins as to how will you sell these products to your buyers? business inarts

We are curious; those who distribute viruses, worms and Trojan horses know it. Don't open emails with breaking news in the subject line. Online criminals use them for carrying out very effective attacks aimed at infecting computers with malicious code. micro new sagency

In this age of growing stress and competition, it's really important to maintain a healthy lifestyle, for which it's really essential that we keep ourselves fit as a fiddle. But to keep up with a fit body and mind, not only is it essential to exercise and diet, but also have our pulse on the latest health news. orkney news today

When you stay at home and work, either at a stay at home job or at a home based business, it's easy to start feeling isolated and lonely. This is especially true if you worked in a large company with a lot of people before you decided to stay at home and work. the home stop

Christian songwriters have undergone a sea change over the past couple of decades with modern technology and better opportunities paving the way for better music and more widespread possibilities. Music is as old as time itself. From the beginning of time, music has influenced man www.christian-sauermann.com

Pada dasarnya hipnotis adalah ilmu yang mempelajari tentang fungsi kerja otak sehingga kita bisa mengakses alam bawah sadar seseorang. Jika anda tertarik untuk mempelajari masalah hipnotis ini saat ini telah berdiri beberapa sekolah hipnotis. ikuti pelatihan hipnotis resmi di Indonesia. Anda bisa mendapatkan informasi lebih jelasnya dengan baca beritanya.
Karangan bunga atau bunga papan adalah sesuatu yang sering kita pesan jika hendak mengucapkan selamat kepada seseorang. Saat ini adanyak sekali florist di wilayah cilacap. Jadi silahkan mencari toko bunga cilacap kebanjiran order. Karangan bunga kami ada beragam model silahkan dilihatlihat penawaran kami.
Kaos polo T-shit saat ini semaakin diminati, karena berada di antara baju santai tapi masih cukup formal untuk berbagai acara. Jadi apakah anda penggemar baju polo? beli kaos polo sekarang juga. dapatkan berbagai koleksi baju polo kami Dapatkan info selengkapnya.
Bisnis pulsa pun semakin diminati karena usaha ini menjual sesuatu yang menjadi kebutuhan masyarakat. Hampir setiap hari orang membeli pulsa jadi bisa dipastikan usaha ini akan mendapatkan banyak pelangganjual pulsa elektrik harga murah. Jika tertarik dengan bisnis pulsa silahkan Kunjungi situs kami.
Saat ini paving block semakin diminati beberapa pengembang bangunan. Jika anda mencari paving block berkualitas dengan harga murah, maka kami menyediakan banyak pillihan untuk anda. paving block berkualitas. Silahkan dicek kualitas dari produk kami dan Baca info lengkapnya.
Apakah anda sedang menjalankan bisnis online? Salah satu bagian terpenting dari sebuah usaha online adalah promosi. Saat ini semakin banyak situs yang menyediakan jasa promosi usaha anda di internet. Anda bisa memilih salah satunya. pasang iklan gratis. Mau pasang iklan jual beli online anda sekarang juga? baca berita selengkapnya.
Piala dunia sebentar lagi, apakah anda membutuhkan baju kaos bola untuk mendukung tim anda? Anda bisa membeli ini secara online karena saat ini semakin banyak jasa yang menyediakan baju kaos bola ini dengan aneka kualitas. jual online jersey bola berkualitas. Anda bisa memilih beberapa koleksi di bawah ini… masuk ke sini.
Kalau anda sudah bosan dengan hiruk pikuk perkotaan anda bisa mengambil jeda sesaat untuk pergi berpetualang ke alam liar dan berarungjeram dengan teman-teman kantor anda. Saat ini rafting memang semakin digemari jadi jangan ragu untuk mencobanya paket rafting arung jeram di bogor. Coba lihat beberapa layanan arung jeram rafting yang sudah diakui di bawah iniLihat koleksi kami.
Mempelajari cara budidaya ternak memang bisa mendatangkan nilai ekonomi yang tidak sedikit, terlebih lagi jika anda sendiri yang akan menjual produk ini kepada teman-teman anda. Budi daya ternak seperti hewan pedaging dan ikan sangatlah digemari. dapatkan panduan budi daya ternak lele. Mau mencoba beberapa ikan lele? hubungi kami di website resmi.
Anda suka bermain catur? Ini adalah permainan strategi tertua di dunia di mana anda bisa mengadu taktik dengan orang lain. Ada beberapa pecatur yang menguasai cara agar mereka bisa menang dengan mudah dan cepat. ini dia strategi menang mudah permainan catur. coba lihat beberapa tekniknya di bawah iniinfo lengkap klik di sini.
Toko sepatu futsal saat ini semakin dicari seiring semakin memasyarakatnya olahraga futsal ini. Jadi kita juga bisa melihat bagaimana olahraga ini menjadi sebuah peluang usaha. Saat ini semakin banyak yang menyediakan sepatu futsal berbagai model dengan harga murahsepatu futsal aneka pilihan dan warna. Jika anda tertarik coba lihat beberapa koleksinya. Klik Tautan ini.

Finding the best solution for auto repair can be simple by following the tips above. Keep doing research on this topic and find people who can teach you a few things. The more you know about auto repair, the better off you will be. http://www.electus-auto.com

This is simply for safety. You can often get better financing from the dealer, but you should know what kind of interest rates you will be dealing with before you start shopping. http://www.ldptransportes.com

Consider holding online contests as a means of your Facebook marketing plan. Offer prizes or discounts to your users when they like your page. Always actually send the prize or you’ll ruin your reputation. http://www.businesshide.com

This blog is really great. The information here will surely be of some help to me. Thanks!.
direct payday lenders

Solr's example schema.xml comes with the charFilter element to map special chars to their ASCII equivalents. Look for the following in the "index" and "query" section of the solr.TextField class:
Most Popular Websites

I have read your blog it is very helpful for me. I want to say thanks to you. I have bookmark your site for future updates.
rebelmouse.com

I am happy to find this post Very useful for me, as it contains lot of information. I Always prefer to read The Quality and glad I found this thing in you post. Thanks
android

Know what kind of truck or car you are looking for before stepping foot into a dealership. Look online to see what is best for your budget and family. You will also note the price range of the vehicle you choose so that you’re not be swayed by salespeople. http://www.chapmanusedcarsaz.com

i am always looking for some free stuffs over the internet. there are also some companies which gives free samples.
facebook.com

Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work.

commodity astrology

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family.
massage london w1

Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject.
Functional fitness

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
ramiz raza shaikh

I think this is one of the most significant information for me. And i’m glad reading your article. But should remark on some general things, The web site style is perfect, the articles is really great : D. Good job, cheers
visit here

Well I don't think so. The point you have made makes a lot of sense but the other side should also be taken into consideration when dealing with such articles. blog infoslurp

Thanks for sharing this quality information with us. I really enjoyed reading. Will surely going to share this URL with my friends.
Evo

Pages