lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Spans, appended fields, and term positions
Date Mon, 21 Nov 2005 21:20:59 GMT

On 21 Nov 2005, at 16:09, Yonik Seeley wrote:
>> The Analyzer extensions seem fine, but much more general purpose  
>> than my need.
>
> For your need (a global increment), isn't expanding analyzer  
> actually easier?
> analyser = new OldAnalyzer() {
>   public int getPositionIncrementGap(String field) {
>     return 1000;
>   }
> }

You just about have me convinced :)   For some reason adding a method  
to Analyzer seems much heavier to me - not quite sure why, just a gut  
feeling.

Thanks for talking this out with me.

	Erik


---------------------------------------------------------------------
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