Can anyone provide some light on the issue I am having?. Thanks! On 5/20/20, 4:55 PM, "Ponnuswamy, Poornima (GE Healthcare)" <poornima.ponnusw...@ge.com> wrote:
Hello, We have solr 6.6 version. Below is the field and field type that is defined in solr schema. <field name="ServiceRequestTypeCode" type="ServiceRequestTypeCode" indexed="true" stored="true" multiValued="false"/> <fieldType name="ServiceRequestTypeCode" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="ServiceRequestTypeCode"/> Below is the configuration for the enum <enum name="ServiceRequestTypeCode"> <value> </value> <value>servicerequestcorrective</value> <value>servicerequestplanned</value> <value>servicerequestinstallationandupgrade</value> <value>servicerequestrecall</value> <value>servicerequestother</value> <value>servicerequestinquiry</value> <value>servicerequestproactive</value> <value>servicerequestsystemupdate</value> <value>servicerequesticenteradmin</value> <value>servicerequestonwatch</value> <value>servicerequestfmi</value> <value>servicerequestapplication</value> </enum> When I try to invoke using the below call, I am getting error http://localhost:8983/solr/activity01us/select?&json.facet={ServiceRequestTypeCode:{type:terms<http://localhost:8983/solr/activity01us/select?&json.facet=%7bServiceRequestTypeCode:%7btype:terms>, field:ServiceRequestTypeCode, limit:100000}}&facet=on&indent=on&wt=json&q=* "Expected numeric field type :ServiceRequestTypeCode{type=ServiceRequestTypeCode,properties=indexed,stored,omitNorms,omitTermFreqAndPositions}" But when I try to do as below it works fine. http://localhost:8983/solr/activity01us/select?facet.field=ServiceRequestTypeCode&facet=on&indent=on&q=*:*&wt=json I would like to use json facet as it would help me in subfaceting. Any help would be appreciated Thanks, Poornima