Bill Okara created SOLR-16828:
---------------------------------

             Summary: Solr JSON Facet on multivalued enumFieldType not working
                 Key: SOLR-16828
                 URL: https://issues.apache.org/jira/browse/SOLR-16828
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrCloud
    Affects Versions: 8.11.2
         Environment: Solr 8.11.2, Java 8, linux
            Reporter: Bill Okara
         Attachments: JSON Facet test.png, traditional facet-1.png

it seemed like Solr JSON facet on multivalued enumFieldType is not working. 
Followings are the tests that I had done.

Setup:

Solr 8.11.2 SolrCould,
{quote}<field name="multi_workdays" type="day_of_week" indexed="true" 
stored="false" docValues="true" useDocValuesAsStored="true" multiValued="true" 
/>

<field name="single_workday" type="day_of_week" indexed="true" stored="false" 
docValues="true" useDocValuesAsStored="true" />

<fieldType name="day_of_week" class="solr.EnumFieldType" docValues="true" 
enumsConfig="enumsConfig.xml" enumName="day_of_week"/>
{quote}
 

Traditional facet and JSON facet on {_}single-valued enum{_}, 
{_}*single_workday*{_}, always works.

Traditional facet on {_}multi-valued enum{_}, {_}*multi-workdays*{_}, only 
works if "{*}_facet.method=enum_{*}"

!traditional facet.png!

 

_*JSON facet*_ on multi-valued enum, multi-workdays, does NOT seem to work; 
even with "method:enum". i.e. the {_}*buckets is always empty*{_}, like

!JSON Facet test.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to