[
https://issues.apache.org/jira/browse/LUCENE-4504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
TomShally updated LUCENE-4504:
------------------------------
Attachment: Lucene4504Test.java
Attached test fails with trunk, passes with patch.
bq. are we sure the first if shouldn't return 1?
According to the javadocs and test: yes. It's supposed to compare the candidate
(doc, docValue) against the "after" value (valueObj, value) and return -1 if
the candidate is less than the provided after value.
> Empty results from IndexSearcher.searchAfter() when sorting by FunctionValues
> -----------------------------------------------------------------------------
>
> Key: LUCENE-4504
> URL: https://issues.apache.org/jira/browse/LUCENE-4504
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/other
> Affects Versions: 4.0
> Reporter: TomShally
> Priority: Minor
> Attachments: LUCENE-4504.patch, Lucene4504Test.java
>
>
> IS.searchAfter() always returns an empty result when using FunctionValues for
> sorting.
> The culprit is ValueSourceComparator.compareDocToValue() returning -1 when it
> should return +1.
--
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: [email protected]
For additional commands, e-mail: [email protected]