The problem is you are not first calling tp.next().
If you fail to call tp.next() then tp.nextPosition()'s behavior is
undefined. In a multi-segment index, you'll hit the NPE you're
seeing. In a single-segment (fully optimized) index, you don't hit
that exception but I'm not sure if the
Hi all,
I am getting the below exception when try to read the payload data:
[java] java.lang.NullPointerException
[java] at
org.apache.lucene.index.MultiSegmentReader$MultiTermPositions.nextPosition(MultiSegmentReader.java:631)
However, if I optimize the index before reading the payloa