Re: Multiple PositionIncrement attributes

2013-04-25 Thread Igor Shalyminov
Thanks Jack, that's a very good option indeed. But this method in some sense lacks precision with sentence boundaries. Thinking of alternatives, is it possible to encode multiple values in a single int for storing position increment and decode it the same way for SpanNearQueries, and is it not a

Re: Multiple PositionIncrement attributes

2013-04-25 Thread Jack Krupansky
You can use SpanNearQuery to seek matches within a specified distance. Lucene knows nothing about "sentences". But if you have an analyzer or custom code that artificially bumps the position to the next multiple of some number like 100 or 1000 when a sentence boundary pattern is encountered, y