lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: Spans, appended fields, and term positions
Date Tue, 22 Nov 2005 08:18:26 GMT
On Monday 21 November 2005 22:20, Erik Hatcher wrote:
> 
> 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.

In case this position increment gap is needed both at indexing time and
at query/highlighting time, I think Analyzer is the right place to put it.

Regards,
Paul Elschot


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