You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2015/04/12 20:29:12 UTC
[jira] [Updated] (LUCENE-6418) SpanNot sometimes forgets to call
matches() on excl approximation
[ https://issues.apache.org/jira/browse/LUCENE-6418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Muir updated LUCENE-6418:
--------------------------------
Summary: SpanNot sometimes forgets to call matches() on excl approximation (was: NearSpans[Payload]Ordered sometimes returns -1 for nextStartPosition())
> SpanNot sometimes forgets to call matches() on excl approximation
> -----------------------------------------------------------------
>
> Key: LUCENE-6418
> URL: https://issues.apache.org/jira/browse/LUCENE-6418
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Robert Muir
> Fix For: Trunk, 5.2
>
> Attachments: LUCENE-6418_test.patch
>
>
> It happens in both impls, so I think the problem is in NearSpansPayloadOrdered. Maybe atFirstInCurrentDoc gets set without matchStart getting set?
> Can be triggered more generally in tests like this:
> {code}
> @Override
> public int nextStartPosition() throws IOException {
> if (atFirstInCurrentDoc) {
> atFirstInCurrentDoc = false;
> assert matchStart >= 0; // add this assert
> return matchStart;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org