[ https://issues.apache.org/jira/browse/LUCENE-6373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494258#comment-14494258 ]
Robert Muir commented on LUCENE-6373: ------------------------------------- Here is another seed from another test, find the same failure: {noformat} [junit4] Suite: org.apache.lucene.search.spans.TestSpanSearchEquivalence [junit4] 2> NOTE: reproduce with: ant test -Dtestcase=TestSpanSearchEquivalence -Dtests.method=testSpanOrVersusBooleanNear -Dtests.seed=2C8D07E17862417A -Dtests.locale=en_MT -Dtests.timezone=Pacific/Rarotonga -Dtests.asserts=true -Dtests.file.encoding=ISO-8859-1 [junit4] FAILURE 0.48s | TestSpanSearchEquivalence.testSpanOrVersusBooleanNear <<< [junit4] > Throwable #1: java.lang.AssertionError: invalid position access, state=DOC_UNVERIFIED: NearSpansOrdered(spanNear([AssertingSpanQuery(field:f), AssertingSpanQuery(field:q)], 10, true))@0: -1 - -1 [junit4] > at __randomizedtesting.SeedInfo.seed([2C8D07E17862417A:E42EBF56AD5D2367]:0) [junit4] > at org.apache.lucene.search.spans.AssertingSpans.nextStartPosition(AssertingSpans.java:80) [junit4] > at org.apache.lucene.search.spans.SpanOrQuery$1.fillPositionQueue(SpanOrQuery.java:285) [junit4] > at org.apache.lucene.search.spans.SpanOrQuery$1.nextStartPosition(SpanOrQuery.java:300) {noformat} I will dig in a little bit more. I ran into a similar problem before with SpanNot, maybe this is a similar one, that happened like this: # sub-approximation is positioned on docid 1 # we call sub.advance(2) and it returns 3 # <we do other processing and then move forward to doc 3, but we never called matches()> So in that case we needed some state to be able to lazily call matches() once and only once when actually needed. SpanNot uses this state for its sub, which records the last document we called matches() for and the return value that matches() had. {code} int lastApproxDoc = -1; boolean lastApproxResult = false; {code} Maybe this one is a similar thing, i will look more. > Complete two phase doc id iteration support for Spans > ----------------------------------------------------- > > Key: LUCENE-6373 > URL: https://issues.apache.org/jira/browse/LUCENE-6373 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Paul Elschot > Attachments: LUCENE-6373-SpanOr.patch, > LUCENE-6737-SpanOr-oneTestFails.patch > > > Spin off from LUCENE-6308, see comments there from about 23 March 2015. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org