gsmiller commented on pull request #127: URL: https://github.com/apache/lucene/pull/127#issuecomment-834040647
It occurred to me that we don't need to be so strict with setting up the seg-tree counter to only be single- or multi-valued. In fact, it's a bit more optimal to use the single-valued algorithm for docs that only have one value, even if docs can have multiple values in general (i.e., if a doc only has a single value, the caller only needs to call `add()`, and should only need to do `startDoc()` -> `add()` -> `endDoc()` when a doc actually has more than one value). I just uploaded a new revision with this tweak. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org