Re: multiple solr home directories

2007-09-03 Thread Henrib

Another possible (and convoluted) way is to use SOLR-215 patch which allows
multiple indexes within one Solr instance (also at this stage, you'd loose
replication and would probably have to adapt the servlet filter).
Regards
Henri


Yu-Hui Jin wrote:
 
 Hi, there,
 
 I have a few basic questions on setting up Solr home directories.
 
 * can we set up multiple Solr home directories within the same Solr
 instance?  (I want to use the same Tomcat Solr instance to support
 indexing
 and searching over multiple independent indexes.)
 
 * If so, say I have some customized Solr plugins, ie., jar files, do I
 have
 to add them to each Solr home's lib directory? ( It feels it's a bit
 redundant to add them multiple times for the same Solr instance. )
 
 
 Thanks,
 
 -Hui
 
 

-- 
View this message in context: 
http://www.nabble.com/multiple-solr-home-directories-tf4346057.html#a12459726
Sent from the Solr - User mailing list archive at Nabble.com.



Re: multiple solr home directories

2007-08-31 Thread Chris Hostetter



Just to make sure.  you mean we can create a directory containing the shared
jars, and each solr home/lib will symlink to the jar files in that
directory. Right?


correct.


-Hoss


Re: multiple solr home directories

2007-08-31 Thread Ozgur Yilmazel
I have a related question on this topic. I have a web application
which I would like to create indexes for individual users on the fly,
is it possible to do JNDI configuration without restarting Tomcat?
Here is some more detail on what I am trying to do:
Our search application has a web based administration page in which
administrators can select set of documents and make them available for
search on different URLs or with different user privileges. I know we
could use the same index and filter results based on a indexname
field, but having separate indexes would make it easy for us to
migrate an index to a different machine easier.

Thank you for your help.

Ozgur




On 8/31/07, Chris Hostetter [EMAIL PROTECTED] wrote:

  Just to make sure.  you mean we can create a directory containing the shared
  jars, and each solr home/lib will symlink to the jar files in that
  directory. Right?

 correct.


 -Hoss



RE: Re: multiple solr home directories

2007-08-31 Thread Stu Hood
You can use a combination of the Tomcat Manager app: 
http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html and this patch: 
https://issues.apache.org/jira/browse/SOLR-336 to create instances on the fly.

My three types of instances have separate home directories, but each running 
instance uses a different data directory.

Thanks,
Stu


-Original Message-
From: Ozgur Yilmazel 
Sent: Friday, August 31, 2007 4:48am
To: solr-user@lucene.apache.org
Subject: Re: multiple solr home directories

I have a related question on this topic. I have a web application
which I would like to create indexes for individual users on the fly,
is it possible to do JNDI configuration without restarting Tomcat?
Here is some more detail on what I am trying to do:
Our search application has a web based administration page in which
administrators can select set of documents and make them available for
search on different URLs or with different user privileges. I know we
could use the same index and filter results based on a indexname
field, but having separate indexes would make it easy for us to
migrate an index to a different machine easier.

Thank you for your help.

Ozgur




On 8/31/07, Chris Hostetter  wrote:

  Just to make sure.  you mean we can create a directory containing the shared
  jars, and each solr home/lib will symlink to the jar files in that
  directory. Right?

 correct.


 -Hoss



Re: multiple solr home directories

2007-08-30 Thread Chris Hostetter



* can we set up multiple Solr home directories within the same Solr
instance?  (I want to use the same Tomcat Solr instance to support indexing
and searching over multiple independent indexes.)


yes.  using JNDI you can configure multiple instances of Solr each with a 
seperate solr home. the tomcat page hs more info on configuring solr 
home with JNDI in tomcat...


http://wiki.apache.org/solr/SolrTomcat


* If so, say I have some customized Solr plugins, ie., jar files, do I have
to add them to each Solr home's lib directory? ( It feels it's a bit
redundant to add them multiple times for the same Solr instance. )


you could, in theory, put plugins at a higher level classloader used by 
tomcat, but that would require loading most of hte solr/lucne code in the 
sam classloader -- i don't recommend that approach, and i won't give any 
advice on how to do it -- because classloader nightmares are bad enough 
when you understand them in detail.


i would recommend that even if you don't want to make multiple copies of 
the jars, you still use a seperate lib directory for each solr home and 
symlink each jar ... each solr instance will have it's own custom 
classloader for dealing with plugins, and this approach will help protect 
you from the possibility of bad code in any of your plugins causing 
one instance of solr to affect another (ie: synchronization blocks, 
singletons, global variables, etc...)


-Hoss


Re: multiple solr home directories

2007-08-30 Thread Yu-Hui Jin
Thanks, Hoss,

 you still use a separate lib directory for each solr home and
symlink each jar ...

Just to make sure.  you mean we can create a directory containing the shared
jars, and each solr home/lib will symlink to the jar files in that
directory. Right?


Thanks,

-Hui



On 8/30/07, Chris Hostetter [EMAIL PROTECTED] wrote:


  * can we set up multiple Solr home directories within the same Solr
  instance?  (I want to use the same Tomcat Solr instance to support
 indexing
  and searching over multiple independent indexes.)

 yes.  using JNDI you can configure multiple instances of Solr each with a
 seperate solr home. the tomcat page hs more info on configuring solr
 home with JNDI in tomcat...

 http://wiki.apache.org/solr/SolrTomcat

  * If so, say I have some customized Solr plugins, ie., jar files, do I
 have
  to add them to each Solr home's lib directory? ( It feels it's a bit
  redundant to add them multiple times for the same Solr instance. )

 you could, in theory, put plugins at a higher level classloader used by
 tomcat, but that would require loading most of hte solr/lucne code in the
 sam classloader -- i don't recommend that approach, and i won't give any
 advice on how to do it -- because classloader nightmares are bad enough
 when you understand them in detail.

 i would recommend that even if you don't want to make multiple copies of
 the jars, you still use a seperate lib directory for each solr home and
 symlink each jar ... each solr instance will have it's own custom
 classloader for dealing with plugins, and this approach will help protect
 you from the possibility of bad code in any of your plugins causing
 one instance of solr to affect another (ie: synchronization blocks,
 singletons, global variables, etc...)

 -Hoss




-- 
Regards,

-Hui


multiple solr home directories

2007-08-29 Thread Yu-Hui Jin
Hi, there,

I have a few basic questions on setting up Solr home directories.

* can we set up multiple Solr home directories within the same Solr
instance?  (I want to use the same Tomcat Solr instance to support indexing
and searching over multiple independent indexes.)

* If so, say I have some customized Solr plugins, ie., jar files, do I have
to add them to each Solr home's lib directory? ( It feels it's a bit
redundant to add them multiple times for the same Solr instance. )


Thanks,

-Hui