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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]