You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Qi Li <al...@gmail.com> on 2010/09/21 22:25:59 UTC

how to change the getPositionIncrementGap for a field which has multiple values

Hi, Guys:

I try to change the getPositionIncrementGap for a field which has multiple
values per document on index time.  But got no clue how to approach this
issue.  Any ideas?

Thank you very much.

Best regards,
Qi Li

Re: how to change the getPositionIncrementGap for a field which has multiple values

Posted by Erick Erickson <er...@gmail.com>.
You should be able to subclass your favorite Analyzer and
then just override that method.

Best
Erick

On Tue, Sep 21, 2010 at 4:25 PM, Qi Li <al...@gmail.com> wrote:

> Hi, Guys:
>
> I try to change the getPositionIncrementGap for a field which has multiple
> values per document on index time.  But got no clue how to approach this
> issue.  Any ideas?
>
> Thank you very much.
>
> Best regards,
> Qi Li
>