How to make search with special characters in keywords

2012-02-01 Thread Tejinder Rawat
Hi all, In my implementation many fields in documents are having words with special characters like Company® ,Time™. Index is created using these fields. However if I make search using these keywords in solr console, it does not work. i.e. entering Company® or Time™ in search field box does not

Re: How to make search with special characters in keywords

2012-02-01 Thread SUJIT PAL
Hi Tejinder, I had this problem yesterday (believe it or not :-)), and the fix for us was to make Tomcat UTF-8 compliant. In server.xml, there is a Controller tag, we added the attribute URIEncoding=UTF-8 and restarted Tomcat. Not sure what container you are using, if its Tomcat this will

Re: How to make search with special characters in keywords

2012-02-01 Thread Erick Erickson
Sujit's comments are well taken, part of your problem will certainly be getting the special characters through your container... But another part of your problem will be having the characters in your index in the first place. The fact that you can find Time in the first place suggests that your

Re: How to make search with special characters in keywords

2012-02-01 Thread SUJIT PAL
Well, sometimes people just copy-paste stuff into the search box probably because some words (at least in my world) are very hard to spell correctly. We noticed the problem because the query was getting mangled on its way in and not returning any search results even though it should have. Our