You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Chris M. Hostetter (Jira)" <ji...@apache.org> on 2021/03/22 16:47:00 UTC

[jira] [Reopened] (SOLR-15191) Faceting on EnumFieldType does not work if allBuckets, numBuckets or missing is set

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

Chris M. Hostetter reopened SOLR-15191:
---------------------------------------

Test is still failing for some seeds...

{noformat}
   >         Caused by:
   >         java.lang.RuntimeException: REQUEST FAILED: xpath=//*[@name='facets']/long/text()=6
   >            xml response was: <?xml version="1.0" encoding="UTF-8"?>
   >         <response>
   >         <lst name="responseHeader"><int name="status">0</int><int name="QTime">19</int><lst name="params"><str name="q">severity:*</str><str name="json.facet">{ severity : { type : terms, field : severity, missing : true, exists : true, allBuckets : true, method : enum }}</str><str name="fl">severity</str><str name="wt">xml</str></lst></lst><result name="response" numFound="0" start="0" numFoundExact="true"></result><lst name="facets"><long name="count">0</long></lst>
   >         </response>
   > 
   >            request was:q=severity:*&json.facet={+severity+:+{+type+:+terms,+field+:+severity,+missing+:+true,+exists+:+true,+allBuckets+:+true,+method+:+enum+}}&fl=severity&wt=xml
   >             at org.apache.solr.SolrTestCaseJ4.assertQ(SolrTestCaseJ4.java:1001)
   >             ... 46 more
  2> NOTE: reproduce with: gradlew test --tests EnumFieldTest.testFacetEnumSearch -Dtests.seed=B5293E76967BD250 -Dtests.multiplier=2 -Dtests.slow=true -Dtests.locale=bez-TZ -Dtests.timezone=Africa/Porto-Novo -Dtests.asserts=true -Dtests.file.encoding=UTF-8
 
{noformat}

> Faceting on EnumFieldType does not work if allBuckets, numBuckets or missing is set
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-15191
>                 URL: https://issues.apache.org/jira/browse/SOLR-15191
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Facet Module, FacetComponent, faceting, search, streaming expressions
>    Affects Versions: 8.7, 8.8, 8.8.1
>            Reporter: Thomas Wöckinger
>            Assignee: David Smiley
>            Priority: Major
>              Labels: easy-fix, pull-request-available
>             Fix For: 8.9
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Due to Solr-14514 FacetFieldProcessorByEnumTermsStream is not used if allBuckets, numBuckets or missing parma is true.
> As fallback FacetFieldProcessorByHashDV is used which FacetRangeProcessor.getNumericCalc(sf) on the field. EnumFileType is not handled currently, so a SolrException is thrown with BAD_REQUEST and 'Expected numeric field type'



--
This message was sent by Atlassian Jira
(v8.3.4#803005)