lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Munendra S N (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SOLR-7497) Empty buckets when faceting with JSON API on EnumField or TrieIntField
Date Tue, 23 Jul 2019 16:22:00 GMT

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

Munendra S N resolved SOLR-7497.
--------------------------------
    Resolution: Duplicate

> Empty buckets when faceting with JSON API on EnumField or TrieIntField
> ----------------------------------------------------------------------
>
>                 Key: SOLR-7497
>                 URL: https://issues.apache.org/jira/browse/SOLR-7497
>             Project: Solr
>          Issue Type: Bug
>          Components: faceting
>    Affects Versions: 5.1, 5.2
>         Environment: OS X 10.10.3
> $ java -version
> java version "1.8.0_31"
> Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)
>            Reporter: Alfonso Muñoz-Pomer Fuentes
>            Priority: Major
>
> When using the JSON API, faceting on an EnumField or TrieIntField returns an empty list
of buckets.
> Steps to reproduce:
> 1. Define an EnumField.
> schema.xml:
> <field name="kingdom" type="kingdomEnum" indexed="true" stored="true" required="true"
/> 
> <fieldType name="kingdomEnum" class="solr.EnumField" enumsConfig="enumsConfig.xml"
enumName="kingdom"/> 
> enumsConfig.xml:
> <?xml version="1.0" ?>
> <enumsConfig>
>     <enum name="kingdom">
>         <value>plants</value>
>         <value>metazoa</value>
>         <value>fungi</value>
>     </enum>
> </enumsConfig> 
> 2. Add documents to core.
> 3. Faceting over the EnumField returns an empty list of buckets:
> $ curl http://localhost:8983/solr/myCore/query -d '
> {
>   query: "*:*",
>   facet : {
>     kingdom : {terms : kingdom}
>   }
> }'
> { ...
>   "facets":{
>     "count":17,
>     "kingdom":{
>       "buckets":[]}}}
> The same issue happens with TrieIntField. Using old-style facets works, this only happens
with the new JSON API.
> I tested changing the field to a string and I get the expected results.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

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


Mime
View raw message