Verify that schema.xml and your document fields are in-sync...
Your stacktrace looks strange... NamedListCodec.unmarshal(NamedListCodec.java:86) - where is java.lang.Long?



Quoting Ranjeet <[EMAIL PROTECTED]>:

Hi Shalin,

I have written Client to index the document, but unfortunatly getting
an exception. I have attached source code of client and exception,
please guide me where I am doing mistake. getting
"java.lang.ClassCastException: java.lang.Long"

Thanks & Regards,
Ranjeet


----- Original Message ----- From: "Shalin Shekhar Mangar"
<[EMAIL PROTECTED]>
To: <solr-user@lucene.apache.org>
Sent: Wednesday, July 30, 2008 6:24 PM
Subject: Re: Query regarding saving of Document and indexing in java


Hi Ranjeet,

You can use Solrj which is a java client for Solr.

See http://wiki.apache.org/solr/Solrj for more details.

On Wed, Jul 30, 2008 at 5:50 PM, Ranjeet <[EMAIL PROTECTED]>wrote:

Hi,

In our case Application and Solr are running in different server in
different system. I am trying to prepare the Document from Application to
save xml document in solr context and indexing the same document from our
Application. Any one has idea, how to save in different IP and how to index
the same document in defferent system. Our Application is Java/j2ee( in
Spring framework) based. It would be great if you send the code/idea to
resolve this.

Thanks & Regards,
Ranjeet




--
Regards,
Shalin Shekhar Mangar.




Reply via email to