[jira] [Updated] (LUCENE-4504) Empty results from IndexSearcher.searchAfter() when sorting by FunctionValues

2012-10-25 Thread Robert Muir (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-4504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Muir updated LUCENE-4504:


Attachment: LUCENE-4504.patch

Thanks for the test Tom! 

I rolled both these into a combined patch: I'll commit soon.

> 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, 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-4504) Empty results from IndexSearcher.searchAfter() when sorting by FunctionValues

2012-10-25 Thread TomShally (JIRA)

 [ 
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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-4504) Empty results from IndexSearcher.searchAfter() when sorting by FunctionValues

2012-10-24 Thread TomShally (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-4504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

TomShally updated LUCENE-4504:
--

Attachment: LUCENE-4504.patch

Patch against trunk

> 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
>
>
> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org