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/

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

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 .

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

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 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 high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information?
www.theofficialwebsite.co/christian-h-girlfriend-activation-system-review/

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.
Binäre Optionen

Thanks so much for this information. I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint.
singapore staycation

Nice post. I was checking constantly this blog and I am impressed! Extremely helpful information specially the last part I care for such info a lot. I was seeking this particular information for a very long time. Thank you and good luck.

Elsedress

I’ve read some good stuff here. Definitely worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website.
Vidd

Great info! I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have.
michael fiore programs: http://www.rebelmouse.com/textyourexbackreview/

Nice to read your article! I am looking forward to sharing your adventures and experiences.
an easy way to get a girlfriend

This content is written very well. Your use of formatting when making your points makes your observations very clear and easy to understand. Thank you.
https://www.rebelmouse.com/ejaculationtrainerreview/

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post.
coal merchants birmingham

Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work.
https://www.rebelmouse.com/makewomenwantyoureview/

I have a hard time describing my thoughts on content, but I really felt I should here. Your article is really great. I like the way you wrote this information.
https://www.rebelmouse.com/fattyliverdietguidereviews/

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

Nice to read your article! I am looking forward to sharing your adventures and experiences.
https://www.rebelmouse.com/ultimateherpesprotocolreviews/

That is really nice to hear. thank you for the update and good luck.
buy red diesel

Kami toko onlien menjual produk Mebel Jati yang menawarkan produk Mebel Jati Jepara Mulai dari Kursi Tamu Minimalis dengan model Mebel Minimalis kami selalu menawarkan produk kami dengan
Mebel Jepara yang tentunya tidak mengurangi kualitas dari produk Mebel Jati Jepara yang kami tawarkan. Kami selalu berupaya dengan menawarkan produk produk Mebel Jati Jepara dengan desain terbaru, dikarenakan setiap produk Mebel Jepara kami selalu terjaga kualitas dan pamornya. Kami juga mempunyai banyak produk galleri Kursi Tamu Jati Minimalis asli produksi
Furniture Jati Jepara dengan label beragam model kami tawarkan secara dengan kekuatan kontruksi pengrajin Mebel Jati jepara tentunya sangat kokoh. Kami juga mempunyai banyak katalog produk Meja Makan Jati asli desain Mebel Jati Jepara dan anda juga dapat memilih warna di menu dan tak ketinggalan kami juga menawarnak produk Kamar Set Minimalis Modern yang dapat anda lihat katalog produknya disini Kamar Set Jati juga bisa disini Sofa Tamu Mewah ada juga produk ukiran lama yang masih banyak digermari oleh masyarakat luas Pintu Gebyok Meja Makan Jati Minimalis Tempat Tidur

I am definitely enjoying your website. You definitely have some great insight and great stories.
best way to talk dirty to a guy

Pages