You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2010/09/26 09:36:33 UTC
[jira] Updated: (SOLR-2134) Trie* fields should support
sortMissingLast=true, and deprecate Sortable* Field Types
[ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org