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 Rakesh Sinha <ra...@gmail.com> on 2008/12/10 18:30:36 UTC

Solr Newbie question

Hi -
  I am a new user of Solr tool  and came across the introductory
tutorial here - http://lucene.apache.org/solr/tutorial.html  .
I am planning to use Solr in one of my projects . I see that the
tutorial mentions about a REST api / interface to add documents and to
query the same.

I would like to create  the indices locally , where the web server (or
pool of servers ) will have access to the database directly , but use
the query REST api to query for the results.

 I am curious how this could be possible without taking the http rest
api submission to add to indices. (For the sake of simplicity - we can
assume it would be just one node to store the index but multiple
readers / query machines that could potentially connect to the solr
web service and retrieve the query results. Also the index might be
locally present in the same machine as that of the Solr host or at
least accessible through NFS etc. )

Thanks for helping out to some starting pointers regarding the same.

Re: Solr Newbie question

Posted by Noble Paul നോബിള്‍ नोब्ळ् <no...@gmail.com>.
On Wed, Dec 10, 2008 at 11:00 PM, Rakesh Sinha <ra...@gmail.com> wrote:
> Hi -
>  I am a new user of Solr tool  and came across the introductory
> tutorial here - http://lucene.apache.org/solr/tutorial.html  .
> I am planning to use Solr in one of my projects . I see that the
> tutorial mentions about a REST api / interface to add documents and to
> query the same.
>
> I would like to create  the indices locally , where the web server (or
> pool of servers ) will have access to the database directly , but use
> the query REST api to query for the results.

If your data resides in DB consider using DIH.
http://wiki.apache.org/solr/DataImportHandler

>
>  I am curious how this could be possible without taking the http rest
> api submission to add to indices. (For the sake of simplicity - we can
> assume it would be just one node to store the index but multiple
> readers / query machines that could potentially connect to the solr
> web service and retrieve the query results. Also the index might be
> locally present in the same machine as that of the Solr host or at
> least accessible through NFS etc. )
I guess you are thinking of using a master/slave setup.
see this http://wiki.apache.org/solr/CollectionDistribution
or http://wiki.apache.org/solr/SolrReplication


>
> Thanks for helping out to some starting pointers regarding the same.
>



-- 
--Noble Paul