On Mon, Mar 8, 2010 at 6:21 PM, KshamaPai <kshamapai2...@gmail.com> wrote:

>
> Hi,
> Thank You for explaining it in a simple way.
> The article really helped me to understand the concepts better.
>
> My question is ,Is it necessary that the data what you are indexing in
> spatial example, is to be in the osm format and using facts files?
>  In my case,am trying to index data ,that has just lat,longitude and
> related
> news item(just text) in a xml file which looks like this
>
> <?xml version="1.0" encoding="UTF-8"?>
> <data name="finals">
>        <row id="1" lat="40.7560150000" lng="-73.9847730000" body="some text
> data(may be very large data)">
> </row>
> </data>
>
> I have silghtly modified driver.java and other .java files in src/main/java
> folder, so that these fields are considered for indexing.(but have retained
> geohash,lat_rad,lng_rad as done in spatial example)
>
> But when i do ant index , am getting
>
> Buildfile: build.xml
>
> init:
>
> compile:
>
> index:
>     [echo] Indexing ./data/
>     [java] ./data/   http://localhost:8983/solr
>     [java] Num args: 2
>     [java] Starting indexing
>     [java] Indexing: ./data/final.xml
>     [java] Mar 8, 2010 4:40:35 AM
> org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
>     [java] INFO: I/O exception (java.net.ConnectException) caught when
> processing request: Connection refused
>

The "Connection refused" message suggests that your Solr instance is either
not running or you have given the wrong host/port in your driver.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to