I have to assume this is a bug. (EnumFieldType does not return facet values.) I didn't want
to create a ticket before floating the issue on this mailing list, but absent any further
guidance or discussion...
So one last shot. Should a field of EnumFieldType be useable as a facet field?
Thanks,
Peter
Peter Tyrrell, MLIS
Lead Developer at Andornot
1-866-266-2525 x706 / ptyrrell@andornot.com
-----Original Message-----
From: Peter Tyrrell
Sent: September 14, 2018 3:04 PM
To: solr-user@lucene.apache.org
Subject: RE: Faceting with EnumFieldType in 7.1
Yes.
Peter Tyrrell, MLIS
Lead Developer at Andornot
1-866-266-2525 x706 / ptyrrell@andornot.com
-----Original Message-----
From: Zheng Lin Edwin Yeo <edwinyeozl@gmail.com>
Sent: September 13, 2018 8:15 PM
To: solr-user@lucene.apache.org
Subject: Re: Faceting with EnumFieldType in 7.1
Was the document re-indexed in Solr 7.1?
Regards,
Edwin
On Wed, 12 Sep 2018 at 23:38, Peter Tyrrell <PTyrrell@andornot.com> wrote:
> I updated an older Solr 4.10 core to Solr 7.1 recently. In so doing, I
> took an old 'gradeLevel_enum' field of type EnumField and made it an
> EnumFieldType, since the former has been deprecated. The old core was
> able to facet on gradeLevel_enum, but the new 7.1 core just returns no
> facet values whatsoever for that field. Both cores return
> gradeLevel_enum values ok when fl=gradeLevel_enum.
>
> In the schema, gradeLevel_enum is defined dynamically:
>
> <dynamicField name="*_enum" type="text_enum" indexed="true" stored="true"
> multiValued="true" />
> <fieldType name="text_enum" class="solr.EnumFieldType" docValues="true"
> enumsConfig="enumsConfig.xml" enumName="gradeLevels"></fieldType>
>
> This simple query fails to return any facet values in 7.1, but does
> facet in 4.10:
>
>
> http://localhost:8983/solr/core1/select?facet.field=gradeLevel_enum&fa
> cet=on&fl=id,gradeLevel_enum&q=*:*&wt=json
>
> Thanks for any insight.
>
> Peter Tyrrell, MLIS
> Lead Developer at Andornot
> 1-866-266-2525 x706 /
> ptyrrell@andornot.com<mailto:ptyrrell@andornot.com>
>
>
|