Re: Slight issue with classloading and DataImportHandler

2008-06-21 Thread Noble Paul നോബിള്‍ नोब्ळ्
yes Brendan. I got your point. That is the very reason of moving to SolrResourceLoader. From the next patch onwards you will be able to load classes from solr-home/lib . --Noble On Sat, Jun 21, 2008 at 7:51 PM, Brendan Grainger <[EMAIL PROTECTED]> wrote: > Hi Noble, > > Just to be clear. It was no

Re: Slight issue with classloading and DataImportHandler

2008-06-21 Thread Brendan Grainger
Hi Noble, Just to be clear. It was not so that I could refer to my plugin class with solr. that I suggested using SolrResourceLoader, it's that the SolrResourceLoader loads the jars you put in solr-home/lib. If you don't do this you get a ClassNotFoundException. It's pretty well explained

Re: Slight issue with classloading and DataImportHandler

2008-06-21 Thread Noble Paul നോബിള്‍ नोब्ळ्
We plan to use SolrResourceLoader (next patch).. So anyone wishing to plugin their classes can refer the classname with solr.. --Noble On Sat, Jun 21, 2008 at 3:06 AM, Chris Hostetter <[EMAIL PROTECTED]> whi rote: > > : But we still prefer the usage of DIH package classes without any prefix. > :

Re: Slight issue with classloading and DataImportHandler

2008-06-20 Thread Otis Gospodnetic
My guess, within the next 2 weeks. :) Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message > From: William Silva <[EMAIL PROTECTED]> > To: solr-user@lucene.apache.org > Sent: Friday, June 20, 2008 7:04:14 PM > Subject: Re: Slight issue

Re: Slight issue with classloading and DataImportHandler

2008-06-20 Thread William Silva
Hi, Who knows when it will be available in the nightly builds ? Thanks, William. On Fri, Jun 20, 2008 at 6:36 PM, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : But we still prefer the usage of DIH package classes without any prefix. > : type="HttpDataSource" > : instead of > : type="solr.Http

Re: Slight issue with classloading and DataImportHandler

2008-06-20 Thread Chris Hostetter
: But we still prefer the usage of DIH package classes without any prefix. : type="HttpDataSource" : instead of : type="solr.HttpDataSource" : : But users must be able to load their classes using the "solr." format I'm not 100% certain what you mean by that last comment, but it seems like the

Re: Slight issue with classloading and DataImportHandler

2008-06-19 Thread Noble Paul നോബിള്‍ नोब्ळ्
We are using DIH in production . It is a planned feature for 1.3 realease. Let us see when it happens --Noble On Thu, Jun 19, 2008 at 7:35 PM, William Silva <[EMAIL PROTECTED]> wrote: > Hi, > Are you using DataImportHandler in a production environment ? > When it will be available in the nightly b

Re: Slight issue with classloading and DataImportHandler

2008-06-19 Thread William Silva
Hi, Are you using DataImportHandler in a production environment ? When it will be available in the nightly builds ? Thanks, William. On Thu, Jun 19, 2008 at 3:12 AM, Noble Paul നോബിള്‍ नोब्ळ् < [EMAIL PROTECTED]> wrote: > We plan to use SolrResourceLoader (in the next patch) . That is the > best

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
We plan to use SolrResourceLoader (in the next patch) . That is the best way to go. But we still prefer the usage of DIH package classes without any prefix. type="HttpDataSource" instead of type="solr.HttpDataSource" But users must be able to load their classes using the "solr." format --Noble

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Chris Hostetter
: aah!. We always assumed that people put the custom jars in the : WEB-INF/lib folder of solr webapp and hence they are automatically in : the classpath we shall make the necessary changes . It would be better to use the classloader from the SolrResourceLoader ... that should be safe for anyone

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Brendan Grainger
Awesome thank you very much and thanks for the very useful contribution. Brendan On Jun 19, 2008, at 12:52 AM, Noble Paul നോബിള്‍ नोब्ळ् wrote: aah!. We always assumed that people put the custom jars in the WEB-INF/lib folder of solr webapp and hence they are automatically in the classpath

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
aah!. We always assumed that people put the custom jars in the WEB-INF/lib folder of solr webapp and hence they are automatically in the classpath we shall make the necessary changes . --Noble On Thu, Jun 19, 2008 at 10:06 AM, Brendan Grainger <[EMAIL PROTECTED]> wrote: > Hi, > > I am actually pr

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Brendan Grainger
Hi, I am actually providing the fully qualified classname in the configuration and I was still getting a ClassNotFoundException. If you look at the code in SolrResourceLoader they actually explicitly add the jars in solr-home/lib to the classloader: static ClassLoader createClassLoader(Fi

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Noble Paul നോബിള്‍ नोब्ळ्
hi, DIH does not load class using the SolrResourceLoader. It tries a Class.forName() with the name you provide if it fails it prepends "org.apache.solr.handler.dataimport." and retries. This is true for not just transformers but also for Entityprocessor, DataSource and Evaluator The reason for do

Re: Slight issue with classloading and DataImportHandler

2008-06-18 Thread Jon Baer
Thanks. Yeah took me a while to figure out I needed to do something like transformer="com.mycompany.solr.MyTransformer" on the entity before it would work ... - Jon On Jun 18, 2008, at 1:51 PM, Brendan Grainger wrote: Hi, I set up the new DataimportHandler last night to replace some cust

Slight issue with classloading and DataImportHandler

2008-06-18 Thread Brendan Grainger
Hi, I set up the new DataimportHandler last night to replace some custom import code I'd written and so far I'm loving it thank you. I had one issue you might want to know about it. I have some solr extensions I've written and packaged in a jar which I place in: solr-home/lib as per: ht