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/

Wonderful illustrated information. I thank you about that. No doubt it will be very useful for my future projects. Would like to see some other posts on the same subject!
https://rebelmouse.com/leanmomsfastfatlosssuccess

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.
press release

Merawat printer akan membantu anda memperpanjang usia dari alat cetak ini. Anda bisa mendapatkan spareparts dari printer yang anda inginkan jika anda hanya ingin melakukan perawatan printer. Hanya saja pada umumnya spareparts ini tidak tersedia di tempat umum dan harus dipesan online. sparepart printer murah . lihat perlengkapan printer lainnya di sini kunjungi website kami .
Jika anda ingin melakukan aktifitas wisata yang menyenangkan, maka sebaiknya anda menyewa jasa wisata. Karena anda akan mendapatkan paket wisata yang biayanya ringan dan pelayanannya profesional. Jadi sekarang coba lakukan pemesanan. Paket Wisata Dieng Wonosobo . dapatkan penawaran paket wisata lainnya di sini silahkan baca selengkapnya .
Apakah anda membutuhkan bantuan untuk mendapatkan gems, atau xp atau food di dragon city? Jangan kuatir karena saat ini sudah ada layanan joki dragon city yang akan membantu anda mendapatkan semuanya itu. Jual Dragon City Food . lihat penawaran lainnya klik di sini .
Untuk melakukan kegiatan outbound yang berkelas anda perlu menyewa jasa pelatihan outbound yang profesional. Hal ini sangat penting untuk menjamin keselamatan para peserta outbound. Ada beberapa layanan outbound yang tersedia saat ini. paket outbound bogor . butuh paket outbound yang lengkap? kunjungi blog .
Jika anda berusaha mengadakan bisnis konveksi baju seragam kantor, maka kami menyediakan jasa konveksi dengan harga murah dan kualitas jahitan yang sangat rapi. Jika anda tertarik, silahkan melihat koleksi dari baju kerja kantor yang kami miliki. Tas seminar Jakarta . Silahkan cek koleksi model tas kami lihat artikel .
Jerawat adalah salah satu masalah yang kerap kali membuat wanita kehilangan rasa percaya diri. Oleh karena itu saya mau memperkenalkan bps yaitu sebuah krim perawatan kecantikan yang bisa membantu anda menghilangkan jerawat yang membandel Jual Online BPS . baca informasi selengkapnya produk majakani ini baca artikel .

The next time I read a blog, I hope that it makes me more happy as much as this one. The way you tell about things is awesome. They are inspiring and helpful.Thanks for sharing your information and views. brut champagne

Di dalam tiap perkantoran ada banyak aktifitas yang membutuhkan tunjangan alat tulis kantor yang memadai. Tidak adanya suply yang terjamin bisa membuat anda kesulitan beraktifitas. Jadi jika anda memerlukan alat tulis kantor anda bisa melakukan pemesanan secara online dan mendapatkan harga terbaik dari kami. jual online alat tulis kantor . pesan alat tulis kantor di sini lihat penjelasan lengkapnya .
Laptop adalah peralatan kerja mobile yang bisa memungkinkan anda melakukan aktifitas kerja di mana saja. Namun untuk membawa laptop anda membutuhkan tas laptop demi kemudahan dan keamanan laptop saudara. Jadi coba dapatkan di toko tas laptop online ini. jual tas bonjour . jual tas laptop dengan harga murah read more .
Olahraga adalah aktifitas yang akan menguras keringat saudara, dan oleh karena itu ada baiknya anda menggunakan baju kaos olahraga yang berkualitas. Baju ini bisa membantu anda menyerap keringat selama olahraga . grosir seragam olahraga . pesan grosir kaos olahraga dan cek modelnya lihat penawaran kami .
Untuk membangun sebuah blog yang SEO friendly anda membutuhkan template blog yang juga SEO friendly dan saat ini salah satu kriteria blog yang SEO friendly adalah responsive design karena akan mudah menyesuaikan dengan layar pengguna internet. Template blog SEO friendly yang responsive . pelajari lebih lanjut cara membuat blognya download di sini .
Wanita saat ini mempunyai selera busana yang sangat kompleks dan semakin jenuh untuk mencarinya di mal atau pasar. Dengan adanya kemajuan teknologi, maka semakin banyak orang yang melakukan belanja online untuk sepatu ataupun baju wanita. jual online aksesoris wanita . silahkan lihat koleksi baju wanita dan sepatu lainnya baca di sini .

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.
https://www.rebelmouse.com/heartburnnomorejeffmartin/

It’s hardly that firm to cataclysm your asset, constant if you hold had years also years of unsullied or nearly flawless fee background.http://wtc.la/9qs

Im really impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it’s rare to see a great blog like this one today..
Apartemen Murah Di Jakarta | pemutih wajah | Baju Wanita Murah | Rumah Dijual Bsd

Hey great sate, bless you for sharing this profitable info furthermore i inclination rent experience my patrons as well. Rollers

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

Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.
bolatangkas

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well.
web design sacramento

Your advise is united of the more that I hold understand. Acknowledge you for putting this info toward sole point. buy instagram followers

Excellent and very exciting site. Love to watch. Keep Rocking.
kirkland personal trainers

I love the way you write and share your niche! Very interesting and different! Keep it coming!
Situs Judi

Di dalam tiap perkantoran ada banyak aktifitas yang membutuhkan tunjangan alat tulis kantor yang memadai. Tidak adanya suply yang terjamin bisa membuat anda kesulitan beraktifitas. Jadi jika anda memerlukan alat tulis kantor anda bisa melakukan pemesanan secara online dan mendapatkan harga terbaik dari kami. jual online alat tulis kantor . pesan alat tulis kantor di sini lihat penjelasan lengkapnya .
Laptop adalah peralatan kerja mobile yang bisa memungkinkan anda melakukan aktifitas kerja di mana saja. Namun untuk membawa laptop anda membutuhkan tas laptop demi kemudahan dan keamanan laptop saudara. Jadi coba dapatkan di toko tas laptop online ini. jual tas bonjour . jual tas laptop dengan harga murah read more .
Olahraga adalah aktifitas yang akan menguras keringat saudara, dan oleh karena itu ada baiknya anda menggunakan baju kaos olahraga yang berkualitas. Baju ini bisa membantu anda menyerap keringat selama olahraga . grosir seragam olahraga . pesan grosir kaos olahraga dan cek modelnya lihat penawaran kami .
Untuk membangun sebuah blog yang SEO friendly anda membutuhkan template blog yang juga SEO friendly dan saat ini salah satu kriteria blog yang SEO friendly adalah responsive design karena akan mudah menyesuaikan dengan layar pengguna internet. Template blog SEO friendly yang responsive . pelajari lebih lanjut cara membuat blognya download di sini .
Wanita saat ini mempunyai selera busana yang sangat kompleks dan semakin jenuh untuk mencarinya di mal atau pasar. Dengan adanya kemajuan teknologi, maka semakin banyak orang yang melakukan belanja online untuk sepatu ataupun baju wanita. jual online aksesoris wanita . silahkan lihat koleksi baju wanita dan sepatu lainnya baca di sini .

Wow what a Great Information about World Day its very nice informative post. thanks for the post.
what time is it in london,

Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
Muchy męskie

Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot.
wrinkle cream

Absolutely fantastic posting! Lots of useful information and inspiration, both of which we all need!Relay appreciate your work.
http://www.apollosoul.co.uk

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists.
driver_irql_not_less_or_equal

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information...
local sex

It actually helped me furthermore i repute it can avail your website. It's secondhand for guarantee moreover shelter of the website. Pikavipit

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 have recently started a blog, the info you provide on this site has helped me greatly. Thanks for all of your time & work.
buy retweets

Hey There. I found your blog using msn. This is a very well written article. I’ll be sure to bookmark it and come back to read more of your useful info. Thanks for the post. I’ll definitely return.
comprar hosting barato

Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback.
Fabrica Agrigos Moda

Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work.
fabrica moda

This is such a great resource that you are providing and you give it away for free.
jobs

This is a great article.I am y much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post. http://theofficialwebsite.co/dr-david-desire-system-review/

Superbly written article, if only all bloggers oered the same content as you, the internet would be a far better place.. yeast infection no more linda allen free

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. go here: https://www.rebelmouse.com/sweatmiracle/

Thanks for providing recent updates regarding the concern, I look to read more.
Abaya Central

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interfaceVaper

I would like to say that this blog really convinced me to do it! Thanks, very good post.
master mineral solution

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists.
investing gold

Thanks for sharing the info, keep up the good work going.... I really enjoyed exploring your site. good resource...
leading osteopathic clinic

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
book reviews on rebelmouse

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
christian h. girlfriend system

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
same day loans

Pages