lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolai Weh (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-8623) JSON FacetAPI with enumField throws "Expected numeric field type"
Date Mon, 01 Feb 2016 01:42:39 GMT

     [ 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


Mime
View raw message