On Fri, Jan 25, 2013 at 6:28 PM, Jack Krupansky <j...@basetechnology.com> wrote:
> Is there a decent writeup on PositionLengthAttribute? I mean, the Javadoc > says "The positionLength determines how many positions this token spans", > which doesn't sound very relevant to multi-term synonyms that span multiple > positions. I don't think we have good enough javadocs around PosLenAtt ... we really should add a simple graph examples. Though, it is a very expert topic ... The way to think of PosIncAtt is that it tells you the start node of this arc (= token), while PosLenAtt tells you the end node, except both atts are "delta coded", making it hard to think about. Furthermore, all arcs (tokens) must be emitted "in order", ie smaller numbered nodes (positions) must come first, and all arcs leaving each node must be enumerated before you go to the next node. Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org