You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Benson Margulies <be...@basistech.com> on 2012/08/29 16:10:31 UTC

ResourceLoader?

Our Solr 3.x code used init(ResourceLoader) and then called the loader to
read a file.

What's the new approach to reading content from files in the 'usual place'?

Re: ResourceLoader?

Posted by Benson Margulies <be...@basistech.com>.
On Wed, Aug 29, 2012 at 10:42 AM, Robert Muir <rc...@gmail.com> wrote:

> Right and what does the @deprecated message say :)
>

Yes, indeed, sorry. I got caught in a maze of twisty passages and my brain
turned off. I'm better now.


>
> On Wed, Aug 29, 2012 at 10:40 AM, Benson Margulies <be...@basistech.com>
> wrote:
> > Hang on:
> >
> > [deprecation] org.apache.solr.util.plugin.ResourceLoaderAware in
> > org.apache.solr.util.plugin has been deprecated
> >
> >
> >
> > On Wed, Aug 29, 2012 at 10:30 AM, Robert Muir <rc...@gmail.com> wrote:
> >
> >> On Wed, Aug 29, 2012 at 10:27 AM, Benson Margulies <
> benson@basistech.com>
> >> wrote:
> >> > I'm confused. Isn't inform/ResourceLoader deprecated? But your example
> >> use
> >> > it?
> >> >
> >>
> >> Where is it deprecated? What does the deprecation message say?
> >>
> >> --
> >> lucidworks.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: java-user-help@lucene.apache.org
> >>
> >>
>
>
>
> --
> lucidworks.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: ResourceLoader?

Posted by Robert Muir <rc...@gmail.com>.
Right and what does the @deprecated message say :)

On Wed, Aug 29, 2012 at 10:40 AM, Benson Margulies <be...@basistech.com> wrote:
> Hang on:
>
> [deprecation] org.apache.solr.util.plugin.ResourceLoaderAware in
> org.apache.solr.util.plugin has been deprecated
>
>
>
> On Wed, Aug 29, 2012 at 10:30 AM, Robert Muir <rc...@gmail.com> wrote:
>
>> On Wed, Aug 29, 2012 at 10:27 AM, Benson Margulies <be...@basistech.com>
>> wrote:
>> > I'm confused. Isn't inform/ResourceLoader deprecated? But your example
>> use
>> > it?
>> >
>>
>> Where is it deprecated? What does the deprecation message say?
>>
>> --
>> lucidworks.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>



-- 
lucidworks.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: ResourceLoader?

Posted by Chris Male <ge...@gmail.com>.
Yeah I deprecated that originally when I first started the work on
migrating the Analysis Factories, to reduce the upgrade load.

On Thu, Aug 30, 2012 at 2:40 AM, Benson Margulies <be...@basistech.com>wrote:

> Hang on:
>
> [deprecation] org.apache.solr.util.plugin.ResourceLoaderAware in
> org.apache.solr.util.plugin has been deprecated
>
>
>
> On Wed, Aug 29, 2012 at 10:30 AM, Robert Muir <rc...@gmail.com> wrote:
>
> > On Wed, Aug 29, 2012 at 10:27 AM, Benson Margulies <benson@basistech.com
> >
> > wrote:
> > > I'm confused. Isn't inform/ResourceLoader deprecated? But your example
> > use
> > > it?
> > >
> >
> > Where is it deprecated? What does the deprecation message say?
> >
> > --
> > lucidworks.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-user-help@lucene.apache.org
> >
> >
>



-- 
Chris Male | Open Source Search Developer | elasticsearch |
www.e<http://www.dutchworks.nl>
lasticsearch.com

Re: ResourceLoader?

Posted by Benson Margulies <be...@basistech.com>.
Hang on:

[deprecation] org.apache.solr.util.plugin.ResourceLoaderAware in
org.apache.solr.util.plugin has been deprecated



On Wed, Aug 29, 2012 at 10:30 AM, Robert Muir <rc...@gmail.com> wrote:

> On Wed, Aug 29, 2012 at 10:27 AM, Benson Margulies <be...@basistech.com>
> wrote:
> > I'm confused. Isn't inform/ResourceLoader deprecated? But your example
> use
> > it?
> >
>
> Where is it deprecated? What does the deprecation message say?
>
> --
> lucidworks.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: ResourceLoader?

Posted by Benson Margulies <be...@basistech.com>.
On Wed, Aug 29, 2012 at 10:30 AM, Robert Muir <rc...@gmail.com> wrote:

> On Wed, Aug 29, 2012 at 10:27 AM, Benson Margulies <be...@basistech.com>
> wrote:
> > I'm confused. Isn't inform/ResourceLoader deprecated? But your example
> use
> > it?
> >
>
> Where is it deprecated? What does the deprecation message say?
>

I see. It moved from one package to another. Sorry for the noise.

>
> --
> lucidworks.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: ResourceLoader?

Posted by Robert Muir <rc...@gmail.com>.
On Wed, Aug 29, 2012 at 10:27 AM, Benson Margulies <be...@basistech.com> wrote:
> I'm confused. Isn't inform/ResourceLoader deprecated? But your example use
> it?
>

Where is it deprecated? What does the deprecation message say?

-- 
lucidworks.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: ResourceLoader?

Posted by Benson Margulies <be...@basistech.com>.
I'm confused. Isn't inform/ResourceLoader deprecated? But your example use
it?


On Wed, Aug 29, 2012 at 10:20 AM, Robert Muir <rc...@gmail.com> wrote:

> On Wed, Aug 29, 2012 at 10:10 AM, Benson Margulies <be...@basistech.com>
> wrote:
> > Our Solr 3.x code used init(ResourceLoader) and then called the loader to
> > read a file.
> >
> > What's the new approach to reading content from files in the 'usual
> place'?
>
> I'm not aware of init(ResourceLoader), only inform(ResourceLoader). is
> that what you meant?
>
> I added some javadocs on the lifecycle of these factories the other
> day (please review, possible doc bugs!):
>
> https://builds.apache.org/job/Lucene-Artifacts-4.x/javadoc/analyzers-common/org/apache/lucene/analysis/util/AbstractAnalysisFactory.html
>
> Here are some examples:
>
> Parses a tab-separated file (using getLines: UTF-8):
>
> http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java
>
> Parses a file of its own format (using specified encoding):
>
> http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.java
>
> --
> lucidworks.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: ResourceLoader?

Posted by Benson Margulies <be...@basistech.com>.
That's what I meant, thanks.

On Wed, Aug 29, 2012 at 10:20 AM, Robert Muir <rc...@gmail.com> wrote:

> On Wed, Aug 29, 2012 at 10:10 AM, Benson Margulies <be...@basistech.com>
> wrote:
> > Our Solr 3.x code used init(ResourceLoader) and then called the loader to
> > read a file.
> >
> > What's the new approach to reading content from files in the 'usual
> place'?
>
> I'm not aware of init(ResourceLoader), only inform(ResourceLoader). is
> that what you meant?
>
> I added some javadocs on the lifecycle of these factories the other
> day (please review, possible doc bugs!):
>
> https://builds.apache.org/job/Lucene-Artifacts-4.x/javadoc/analyzers-common/org/apache/lucene/analysis/util/AbstractAnalysisFactory.html
>
> Here are some examples:
>
> Parses a tab-separated file (using getLines: UTF-8):
>
> http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java
>
> Parses a file of its own format (using specified encoding):
>
> http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.java
>
> --
> lucidworks.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: ResourceLoader?

Posted by Robert Muir <rc...@gmail.com>.
On Wed, Aug 29, 2012 at 10:10 AM, Benson Margulies <be...@basistech.com> wrote:
> Our Solr 3.x code used init(ResourceLoader) and then called the loader to
> read a file.
>
> What's the new approach to reading content from files in the 'usual place'?

I'm not aware of init(ResourceLoader), only inform(ResourceLoader). is
that what you meant?

I added some javadocs on the lifecycle of these factories the other
day (please review, possible doc bugs!):
https://builds.apache.org/job/Lucene-Artifacts-4.x/javadoc/analyzers-common/org/apache/lucene/analysis/util/AbstractAnalysisFactory.html

Here are some examples:

Parses a tab-separated file (using getLines: UTF-8):
http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/StemmerOverrideFilterFactory.java

Parses a file of its own format (using specified encoding):
http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseTokenizerFactory.java

-- 
lucidworks.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org