[
https://issues.apache.org/jira/browse/SOLR-2134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McKinley updated SOLR-2134:
--------------------------------
Attachment: SOLR-2134-SortMissingLast.patch
This patch adds 'missingValue' to the lucene SortField and then passes that on
to the FieldComparator. Setting the 'missingValue' to MIN_VALUE or MAX_VALUE
lets you either sort the missing fields first or last.
Since the majority of the work is actually in lucene, it may make more sense to
have this as a LUCENE issue.
The solr side still needs some tests, but wanted to get this out for folks to
see.
> Trie* fields should support sortMissingLast=true, and deprecate Sortable*
> Field Types
> -------------------------------------------------------------------------------------
>
> Key: SOLR-2134
> URL: https://issues.apache.org/jira/browse/SOLR-2134
> Project: Solr
> Issue Type: Improvement
> Components: Schema and Analysis
> Reporter: Ryan McKinley
> Attachments: SOLR-2134-SortMissingLast.patch
>
>
> With the changes in LUCENE-2649, the FieldCache also returns if the bit is
> valid or not. This is enough to support sortMissingLast=true with Trie*
> fields. Then we can get rid of the Sortable* fields
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]