lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Jain <>
Subject Re: WordDelimiterFilter looses position increments of tokens
Date Wed, 05 Jul 2006 05:46:51 GMT
Yonik Seeley wrote:
> Your'e right, it does look possible that position info can be lost.
> The fix probably isn't as simple as copying the position increment in
> newTok()... the original increment should only be copied for the first
> token generated.

If something like

   for (int i = 1, max = queue.size(); i < max; ++i)

were added just at the end of the next() method, before returning 
queue.get(0), that should fix the problem?

View raw message