lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-5222) Sorting on dynamic fields using DocValues sorts empty values always first
Date Mon, 09 Sep 2013 22:34:52 GMT

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

Hoss Man resolved SOLR-5222.
----------------------------

       Resolution: Fixed
    Fix Version/s: 5.0
                   4.5

I've committed my test refactoring/additions for DocValuesMissingTest to also cover the dynamic
field variations...

Committed revision 1521304.
Committed revision 1521307.

bq. Seems like the real bug is unrelated to docvalues

Agreed -- my point was just that up to Solr 4.4, it should have been impossible to configure
dynamicFields with docValues, because of the mutually exclusive requirements.  I've opened
SOLR-5227 to fix the dynamicField+defaultValue error checking problem.


                
> Sorting on dynamic fields using DocValues sorts empty values always first
> -------------------------------------------------------------------------
>
>                 Key: SOLR-5222
>                 URL: https://issues.apache.org/jira/browse/SOLR-5222
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Pascal Chollet
>            Assignee: Hoss Man
>            Priority: Minor
>             Fix For: 4.5, 5.0
>
>
> When using DocValues for sort fields, "sortMissingLast=true" seems not to work - which
makes sense as DocValues require a value for every document. The workaround is to use a default
value which is alphanumericly sorted last. But when specifying the sort field as a dynamic
field, the default value is not applied when a document does not contain that field.
> To make it work, I had to define every single sort field explicitly.

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


Mime
View raw message