lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: batch indexing
Date Tue, 19 Nov 2002 05:46:29 GMT
Switched to lucene-dev.
This is a few month old email, but I like the attached class.

Péter, is this the latest version of this class?
It looks like you don't need setAnalyzer(Analyzer) method in
IndexWriter, and getAnalyzer() is there now, so this should work
(haven't tried compiling it yet).

If there is a newever version of this class please send it over.

Otis


--- Halácsy_Péter <halacsy.peter@axelero.com> wrote:
> Hello everybody,
> there were a lot of discussion about batch indexing. I've attached a
> BatchIndexWriter class that can speed up the indexing. I haven't
> tested (release early release often).
> 
> Unfortunatly one has to modify lucene code to use it: add two methods
> to IndexWriter.java
> 
>   /** Sets the analyzer which the text will be analyzed with. 
>    */
>   public synchronized void setAnalyzer(Analyzer a) {
>       this.analyzer = a;
>   }
>   
>   /** Returns the analyzer that is used to analyzer the text.
>    */
>   public synchronized Analyzer getAnalyzer() {
>       return analyzer;
>   }
> 
> 
> Developers! Couldn't you add these methods in the cvs? they're very
> helpful if one wants to make a wrapper or decorator class.
> 
> peter
> 

> ATTACHMENT part 2 application/octet-stream name=BatchIndexWriter.java
> --
> To unsubscribe, e-mail:  
> <mailto:lucene-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:lucene-user-help@jakarta.apache.org>


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message