Huh, that might have been a false problem of some kind.

At the moment, it looks like I _do_ have my SolrJ 4.3 succesfully talking to a Solr 1.4, so long as I setParser(new XMLResponseParser()).

Not sure what I changed or what wasn't working before, but great!

So nevermind. Although if anyone reading this wants to share any other potential gotchas on solrj 4.3 talking to solr 1.4, feel free!

On 7/11/13 4:24 PM, Jonathan Rochkind wrote:
So, trying to use a SolrJ 4.3 to talk to an old Solr 1.4. Specifically
to add documents.

The wiki at http://wiki.apache.org/solr/Solrj suggests, I think, that
this should work, so long as you:

server.setParser(new XMLResponseParser());

However, when I do this, I still get a
org.apache.solr.common.SolrException: "parsing error" from
org.apache.solr.client.solrj.impl.XMLResponseParser.processResponse(XMLResponseParser.java:143)


(If I _don't_ setParser to XML, and use the binary parser... I get a
fully expected error about binary format corruption -- that part is
expected and I understand it, that's why you have to use the
XMLResponseParser instead).

Am I not doing enough to my SolrJ 4.3 to get it to talk to the Solr 1.4
server in pure XML? I've set the parser to the XMLResponseParser, do I
also have to somehow tell it to actually use the Solr 1.4 XML update
handler or something?  I don't entirely understand what I'm talking about.

Alternately... is it just a lost cause trying to get SolrJ 4.3 to talk
to Solr 1.4, is the wiki wrong that this is possible?

Thanks for any help,

Jonathan

Reply via email to