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

I think I am truly beset about this innovative getting together with and I need to know the surveys of this getting together with.best 3d printer

I am always searching online for articles that can help me. There is obviously a lot to know about this. I think you made some good points in Features also. Keep working, great job wie kann man schnell abnehmen | quiero quedar embarazada

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

There are so many developers working on this segment but this is one of the best innovative idea ever. Thanks for sharing it here. liga spanyol

It is basic that we read blog entry exceptionally carefully,i might want to thank you for this magnificent data!! http://www.BenjaminAaronson.com

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

I havent any word to appreciate this post..... i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
heather mathews manifestation miracle guide review

I think that thanks for the information and insights you have so provided here.
rebelmouse

This is such a great resource that you providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.
lucy bennett teeth whitening 4 you testimonials

I think this is a really article. You make this information interesting and engaging. You give readers a lot to think about and I appreciate that kind of writing.
https://www.rebelmouse.com/hollyhaydenhmiraclereview

Great post I wo d like to thank you for the efforts you have made in writing this interesting and knowledgeable article. achieve the most attractive female body ratio

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

It was wondering if I could use this write-up on my other website,
hungry shark evolution hack

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

The deep you dig into the subject and give us the accurate data is appreciable.
Regulated Binary Options Brokers

Thanks for sharing the info, p the good work going.... I really enjoyed exploring your site. good resource... capture his heart review

Very good points you wrote here..Great stuff...I you've made some truly interesting points.Keep up the good work. https://www.rebelmouse.com/restoremyvisiontodayreview/

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 job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing
Modafinil Australia

I read that Post and got it fine and informative. Please share more like that...
Forums

This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work
subway surfers hack

This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles.
Strategic Campaigns

This is a great article thanks for sharing this informative information.
hay day hack android

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

Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.
instant insurance quote

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

Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.
free 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

Pages