You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Eric Martin <er...@makethembite.com> on 2010/11/18 21:33:06 UTC

Reindex Solr Using Tomcat

Hi,

 

I searched google and the wiki to find out how I can force a full re-index
of all of my content and I came up with zilch. My goal is to be able to
adjust the weight settings, re-index  my entire database and then search my
site and view the results of my weight adjustments.

 

I am using Tomcat 5.x and Solr 1.4.1. Weird how I couldn't find this info. I
must have missed it. Anyone know where to find it?

 

Eric

 


Re: Reindex Solr Using Tomcat

Posted by Ken Stanley <do...@gmail.com>.
On Thu, Nov 18, 2010 at 3:42 PM, Eric Martin <er...@makethembite.com> wrote:
> Ah, I am using an ApacheSolr module in Drupal and used nutch to insert the data into the Solr index. When I using Jetty I could just delete the data contents in sshd and then restart the service forcing the reindex.
>
> Currently, the ApacheSolr module for Drupal allows for a 200 record re-index every cron run, but that is too slow for me. During implantation and testing I would prefer to re-index the entire database as I have over 400k records.
>
> I appreciate your help. My mind was searching for a command on the CLI that would just tell solr to reindex the entire dbase and be done with it.
>

Eric,

>From what I could find, this looks to be your best bet:
http://drupal.org/node/267543.

- Ken

RE: Reindex Solr Using Tomcat

Posted by Eric Martin <er...@makethembite.com>.
Ah, I am using an ApacheSolr module in Drupal and used nutch to insert the data into the Solr index. When I using Jetty I could just delete the data contents in sshd and then restart the service forcing the reindex.

Currently, the ApacheSolr module for Drupal allows for a 200 record re-index every cron run, but that is too slow for me. During implantation and testing I would prefer to re-index the entire database as I have over 400k records. 

I appreciate your help. My mind was searching for a command on the CLI that would just tell solr to reindex the entire dbase and be done with it.

-----Original Message-----
From: Ken Stanley [mailto:dohpaz@gmail.com] 
Sent: Thursday, November 18, 2010 12:37 PM
To: solr-user@lucene.apache.org
Subject: Re: Reindex Solr Using Tomcat

On Thu, Nov 18, 2010 at 3:33 PM, Eric Martin <er...@makethembite.com> wrote:
> Hi,
>
>
>
> I searched google and the wiki to find out how I can force a full re-index
> of all of my content and I came up with zilch. My goal is to be able to
> adjust the weight settings, re-index  my entire database and then search my
> site and view the results of my weight adjustments.
>
>
>
> I am using Tomcat 5.x and Solr 1.4.1. Weird how I couldn't find this info. I
> must have missed it. Anyone know where to find it?
>
>
>
> Eric
>

Eric,

How you re-index SOLR determines which method you wish to use. You can
either use the UpdateHandler using a POST of an XML file [1], or you
can use the DataImportHandler (DIH) [2]. There exist other means, but
these two should be sufficient to get started. How did you import your
initial index in the first place?

[1] http://wiki.apache.org/solr/UpdateXmlMessages
[2] http://wiki.apache.org/solr/DataImportHandler


Re: Reindex Solr Using Tomcat

Posted by Ken Stanley <do...@gmail.com>.
On Thu, Nov 18, 2010 at 3:33 PM, Eric Martin <er...@makethembite.com> wrote:
> Hi,
>
>
>
> I searched google and the wiki to find out how I can force a full re-index
> of all of my content and I came up with zilch. My goal is to be able to
> adjust the weight settings, re-index  my entire database and then search my
> site and view the results of my weight adjustments.
>
>
>
> I am using Tomcat 5.x and Solr 1.4.1. Weird how I couldn't find this info. I
> must have missed it. Anyone know where to find it?
>
>
>
> Eric
>

Eric,

How you re-index SOLR determines which method you wish to use. You can
either use the UpdateHandler using a POST of an XML file [1], or you
can use the DataImportHandler (DIH) [2]. There exist other means, but
these two should be sufficient to get started. How did you import your
initial index in the first place?

[1] http://wiki.apache.org/solr/UpdateXmlMessages
[2] http://wiki.apache.org/solr/DataImportHandler