Nikolai Weh created SOLR-8623:
---------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]