You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Nikolai Weh (JIRA)" <ji...@apache.org> on 2016/02/01 02:42:39 UTC

[jira] [Updated] (SOLR-8623) JSON FacetAPI with enumField throws "Expected numeric field type"

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

Nikolai Weh updated SOLR-8623:
------------------------------
    Attachment: 0001-Added-support-for-facetting-on-enum-types.patch

Added the referenced patch.

> JSON FacetAPI with enumField throws "Expected numeric field type"
> -----------------------------------------------------------------
>
>                 Key: SOLR-8623
>                 URL: https://issues.apache.org/jira/browse/SOLR-8623
>             Project: Solr
>          Issue Type: Bug
>          Components: Facet Module, faceting
>    Affects Versions: 5.4
>            Reporter: Nikolai Weh
>         Attachments: 0001-Added-support-for-facetting-on-enum-types.patch
>
>
> Hi,
> I've posted this issue about 3 weeks ago on the solr-user mailing list here: 
> http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201601.mbox/%3C568EEF90.8050100%40gmail.com%3E
> Basically, when using the json facet api on an enum field, like this:
> {noformat}
>     json.facet={
>       states: {field: state}, dates: {field: insertdate}
>     }
> {noformat}
> where state is an enum, i get an error:
> {noformat}
>   "error":{
>     "msg":"Expected numeric field type
> :state{type=auState,properties=indexed,stored,docValues}",
>     "code":400}
> {noformat}
> The full example can be found here: https://gist.github.com/xou/33fd7aab7afe3cebb28b
> And a quick-and-dirty patch can be found here: http://bildungsresistenz.de/tmp.h/0001-Added-support-for-facetting-on-enum-types.patch
> I'm not sure whether the patch is the right way to approach this; if it goes in the right direction i can definitely try to clean it up a bit more.
> Cheers,
> Niko



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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