lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alfonso Muñoz-Pomer Fuentes <>
Subject Empty buckets when faceting over an EnumField or TrieIntField (5.1.0)
Date Fri, 01 May 2015 15:38:56 GMT

I’m having problems when faceting over an EnumField such as this:
<field name="kingdom" type="kingdomEnum" indexed="true" stored="true" 
required="true" />

And in enumsConfig.xml:
<?xml version="1.0" ?>
     <enum name="kingdom">

A query such as the one below returns all buckets empty:
curl http://localhost:8983/solr/enumTest/query -d '
   query: "*:*",
   facet : {
     kingdom : {terms : kingdom}


If I turn the kingdom field to be a string, then faceting works as 
expected. The same happens with TrieIntField (aggregating functions like 
avg work but unique doesn’t). This worked in Heliosearch. Has anybody 
had any similar problems? Am I missing something?

Thank you in advance.


View raw message