Thanks Shalin,

Adding BinaryUpdateRequestHandler solved the issue. Thank you very much. 

Just one query, shouldn't XmlUpdateRequestHandler also work for these 
characters? I saw another user mentioning the same issue and it was working 
with DirectXmlRequest. 



-----Original Message-----
From: Shalin Shekhar Mangar [mailto:shalinman...@gmail.com] 
Sent: Friday, March 20, 2009 3:58 PM
To: solr-user@lucene.apache.org
Subject: Re: Special character indexing

On Fri, Mar 20, 2009 at 3:19 PM, Gargate, Siddharth <sgarg...@ptc.com>wrote:

> Hi Shalin,
>        Thanks for the suggestion. I tried following code, (not sure 
> about the exact usage)
>
>        CommonsHttpSolrServer ess = new CommonsHttpSolrServer("
> http://localhost:8983/solr";);
>        ess.setRequestWriter(new BinaryRequestWriter());
>        SolrInputDocument solrdoc = new SolrInputDocument();
>        solrdoc.addField("id", "Kimi");
>        solrdoc.addField("name", "03 Kimi Räikkönen ");
>        ess.add(solrdoc);
>
> But got following exception on the server
>
> WARNING: The @Deprecated SolrUpdateServlet does not accept query
> parameters: wt=javabin
>  If you are using solrj, make sure to register a request handler to 
> /update rather then use this servlet.
>  Add: <requestHandler name="/update" 
> class="solr.XmlUpdateRequestHandler" > to your solrconfig.xml
>

Yes, you need to add the following to your solrconfig.xml

<requestHandler name="/update/javabin"
class="solr.BinaryUpdateRequestHandler" />

--
Regards,
Shalin Shekhar Mangar.

Reply via email to