[ https://issues.apache.org/jira/browse/LUCENE-8103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056624#comment-17056624 ]
David Smiley commented on LUCENE-8103: -------------------------------------- {{ant test -Dtestcase=TestValueSources -Dtests.method=testQueryWrapedFuncWrapedQuery -Dtests.seed=625CF512BDD7BD01 -Dtests.slow=true -Dtests.badapples=true -Dtests.locale=fr-CA -Dtests.timezone=America/Phoenix -Dtests.asserts=true -Dtests.file.encoding=UTF-8}} {{java.lang.AssertionError: ITERATINGjava.lang.AssertionError: ITERATING}} {{ at __randomizedtesting.SeedInfo.seed([625CF512BDD7BD01:36E49DF7D50086EB]:0) at org.apache.lucene.search.AssertingScorer$3.matches(AssertingScorer.java:235) at org.apache.lucene.queries.function.valuesource.QueryDocValues.exists(QueryValueSource.java:156) at org.apache.lucene.queries.function.valuesource.QueryDocValues.floatVal(QueryValueSource.java:129) at org.apache.lucene.queries.function.FunctionQuery$AllScorer.score(FunctionQuery.java:120) at org.apache.lucene.search.AssertingScorer.score(AssertingScorer.java:102)}} > QueryValueSource should use TwoPhaseIterator > -------------------------------------------- > > Key: LUCENE-8103 > URL: https://issues.apache.org/jira/browse/LUCENE-8103 > Project: Lucene - Core > Issue Type: Improvement > Components: modules/other > Reporter: David Smiley > Priority: Minor > Attachments: LUCENE-8103.patch > > > QueryValueSource (in "queries" module) is a ValueSource representation of a > Query; the score is the value. It ought to try to use a TwoPhaseIterator > from the query if it can be offered. This will prevent possibly expensive > advancing beyond documents that we aren't interested in. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org