lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Allan Hill <p...@metajure.com>
Subject RE: Phrase Queries vs. SpanTermQueries exact phrases vs. stop words
Date Wed, 01 Feb 2012 21:37:17 GMT
>Doron wrote: 
> >     int gap = (pp[pp.length] - pp[0]) - (pp.length - 1); 

int gap = (pp[pp.length-1] - pp[0]) - (pp.length - 1);

Don't want to cause an IndexOutOfBoundsException
-Paul

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