Hello,
I'm writing my first little Solrj program, but don't get it running because of
an RemoteSolrException: Server at http://localhost:8983/solr returned non ok
status:404
The server is definitely running and the url works in the browser.
I am working with Solr 4.3.0.
This is my source code
y 27, 2013 3:58 PM
To:
Subject: Re: A strange RemoteSolrException
I downloaded solr 4.3.0, started it up with java -jar start.jar (from
inside the example directory) and executed your program. No exceptions are
thrown. Is there something you did differently?
On Mon, May 27, 2013 at 5:45 PM, Hans
sey"
Sent: Monday, May 27, 2013 4:29 PM
To:
Subject: Re: A strange RemoteSolrException
On 5/27/2013 8:24 AM, Hans-Peter Stricker wrote:
Yes, I started it up with java -Dsolr.solr.home=example-DIH/solr -jar
start.jar.
That explains it. See my other reply. The solr.xml file for
example-DIH
I start the SOLR example with
java -Dsolr.solr.home=example-DIH/solr -jar start.jar
and run
public static void main(String[] args) {
String url = "http://localhost:8983/solr/rss";;
SolrServer server;
SolrQuery query;
try {
server = new HttpSolrServer
ke a charm!
Thanks
Hans
--
From: "Shalin Shekhar Mangar"
Sent: Monday, May 27, 2013 6:09 PM
To:
Subject: Re: Problems with DIH in Solrj
Your program is not specifying a command. You need to add:
query.setParam("command", "full-import");
On Mon, May 27, 2013 at
Replacing the contents of
solr-4.3.0\example\example-DIH\solr\rss\conf\rss-data-config.xml
by
url="http://beautybooks88.blogspot.com/feeds/posts/default";
processor="XPathEntityProcessor" forEach="/feed/entry"
transformer="DateFormatTransformer">
c
Thanks for having analyzed the problem. But please let me note that I came to a
somehow different conclusion.
Define for the moment "title" to be the primary unique key:
solr-4.3.0\example\example-DIH\solr\rss\conf\schema.xml
title
solr-4.3.0\example\example-DIH\solr\rss\conf\rss-data-config
I wonder how to pass default values via , e.g. like this:
BE
or like this:
In the course of this, I did not find a DTD or Schema for .
Any hint is appreciated!!
d.
However, the solr schema.xml lets you specify defaults. So, modify the
corresponding field inside solr's schema.xml. For example:
default="BE"/>
On Fri, May 31, 2013 at 8:20 PM, Hans-Peter Stricker
wrote:
I wonder how to pass default values via , e.g. like this:
hema.xml. For example:
default="BE"/>
On Fri, May 31, 2013 at 8:20 PM, Hans-Peter Stricker
wrote:
I wonder how to pass default values via , e.g. like this:
BE
or like this:
In the course of this
10 matches
Mail list logo