You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2017/08/03 18:53:01 UTC

[jira] [Updated] (SOLR-11023) Need SortedNumerics/Points version of EnumField

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

Steve Rowe updated SOLR-11023:
------------------------------
    Attachment: SOLR-11023.patch

WIP patch, hopefully code complete, more testing needed (described by Hoss'ss nocommits in EnumFieldTest).

Changes from Hoss'ss patch: Most nocommits are resolved.  I renamed HuperDuperEnumField to EnumFieldType. I decided not to support uninversion in EnumFieldType (I couldn't figure out how to make it work), and also to require docValues, since I think it would be a trap to allow a situation where sorting isn't supported over a field that claims to support arbitrary sorting over the enum values.  I've added a test to throw an exception when docvalues aren't enabled for an EnumFieldType field.

> Need SortedNumerics/Points version of EnumField
> -----------------------------------------------
>
>                 Key: SOLR-11023
>                 URL: https://issues.apache.org/jira/browse/SOLR-11023
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Hoss Man
>            Assignee: Steve Rowe
>            Priority: Blocker
>              Labels: numeric-tries-to-points
>             Fix For: 7.0
>
>         Attachments: SOLR-11023.patch, SOLR-11023.patch, SOLR-11023.patch
>
>
> although it's not a subclass of TrieField, EnumField does use "LegacyIntField" to index the int value associated with each of the enum values, in addition to using SortedSetDocValuesField when {{docValues="true" multivalued="true"}}.
> I have no idea if Points would be better/worse then Terms for low cardinality usecases like EnumField, but either way we should think about a new variant of EnumField that doesn't depend on LegacyIntField/LegacyNumericUtils.intToPrefixCoded and uses SortedNumericDocValues.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org