[
https://issues.apache.org/jira/browse/SOLR-16828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bill Okara updated SOLR-16828:
------------------------------
Description:
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*{_}, 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!
was:
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!
> 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
> Priority: Minor
> Attachments: JSON Facet test.png, traditional facet.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*{_}, 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: [email protected]
For additional commands, e-mail: [email protected]