lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Muir <rcm...@gmail.com>
Subject Re: ResourceLoader?
Date Wed, 29 Aug 2012 14:20:56 GMT
On Wed, Aug 29, 2012 at 10:10 AM, Benson Margulies <benson@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


Mime
View raw message