[jira] [Commented] (LUCENE-4555) Partial matches in DisjunctionIntervalQueries trip assertions when collected

2012-11-14 Thread Alan Woodward (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13497518#comment-13497518
 ] 

Alan Woodward commented on LUCENE-4555:
---

I'm running into something of a brick wall here.

The problem arises when you have a DisjunctionII wrapping an IntervalFilter 
over a ConjunctionII.  When scorerAdvanced is called, a ConjunctionII can end 
up positioned on a document ahead of the parent DisjunctionII, which then trips 
asserts when the parent is advanced.  I've tried to work out a way round this 
but am failing so far.  Anybody else want to have a look?

 Partial matches in DisjunctionIntervalQueries trip assertions when collected
 

 Key: LUCENE-4555
 URL: https://issues.apache.org/jira/browse/LUCENE-4555
 Project: Lucene - Core
  Issue Type: Sub-task
  Components: core/search
Reporter: Alan Woodward
Priority: Minor
 Fix For: Positions Branch


 See, eg, all the TestOr* tests in TestBasicIntervals.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-4555) Partial matches in DisjunctionIntervalQueries trip assertions when collected

2012-11-13 Thread Alan Woodward (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13496127#comment-13496127
 ] 

Alan Woodward commented on LUCENE-4555:
---

The TestOr* queries failing were due to bugs in the tests, of course...

The actual problem here is that DisjunctionIntervalIterator doesn't take 
snapshots of its intervals, so the iterator is already positioned when we 
collect.  I'll abstract out a SnapshotCollectingIntervalIterator, and both 
ConjunctionII and DisjunctionII can subclass from that.

 Partial matches in DisjunctionIntervalQueries trip assertions when collected
 

 Key: LUCENE-4555
 URL: https://issues.apache.org/jira/browse/LUCENE-4555
 Project: Lucene - Core
  Issue Type: Sub-task
  Components: core/search
Reporter: Alan Woodward
Priority: Minor
 Fix For: Positions Branch


 See, eg, all the TestOr* tests in TestBasicIntervals.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (LUCENE-4555) Partial matches in DisjunctionIntervalQueries trip assertions when collected

2012-11-13 Thread Alan Woodward (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-4555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13496349#comment-13496349
 ] 

Alan Woodward commented on LUCENE-4555:
---

OK, the relevant test here is 
TestNestedIntervalFilterQueries.testOrNearNearQuery.  It seems as though the 
bug is actually in PositionFilterScorer (which should be called 
IntervalFilterScorer, but anyway).  Will try and chase it down tonight.

 Partial matches in DisjunctionIntervalQueries trip assertions when collected
 

 Key: LUCENE-4555
 URL: https://issues.apache.org/jira/browse/LUCENE-4555
 Project: Lucene - Core
  Issue Type: Sub-task
  Components: core/search
Reporter: Alan Woodward
Priority: Minor
 Fix For: Positions Branch


 See, eg, all the TestOr* tests in TestBasicIntervals.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org