You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2024/11/09 14:17:00 UTC
[jira] [Resolved] (SOLR-8242) contrib/analytics: relocate hasDocValues() check out of FieldFacetAccumulator
[ https://issues.apache.org/jira/browse/SOLR-8242?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Pugh resolved SOLR-8242.
-----------------------------
Resolution: Won't Fix
analytics contrib was removed in the past.
> contrib/analytics: relocate hasDocValues() check out of FieldFacetAccumulator
> -----------------------------------------------------------------------------
>
> Key: SOLR-8242
> URL: https://issues.apache.org/jira/browse/SOLR-8242
> Project: Solr
> Issue Type: Task
> Reporter: Christine Poerschke
> Priority: Minor
>
> from SOLR-8147:
> [~cpoerschke] wrote:
> bq. Considering the overall class usage and calling chains, might the {{hasDocValues()}} check be relocated to somewhere higher up? From a cursory look {{AnalyticsContentHandler.endElement}} and {{AnalyticsRequestFactory.(parse|makeFieldFacet|setFieldFacetParam)}} construct {{FieldFacetRequest}} objects and perhaps the hasDocValues check could happen there i.e. catch the invalid input/bad request when considering request parameters and then within the lower level accumulator object the hasDocValues check goes away and no SolrException need be thrown by the {{FieldFacetAccumulator}}.
> [~houstonputman] wrote:
> bq. I agree that the {{hasDocValues()}} check should be moved to {{AnalyticsRequestFactory.(makeFieldFacet|setFieldFacetParam)}}. It shouldn't add any complexity since those methods are where the {{SchemaField}} references, which {{FieldFacetAccumulator}} uses, originate. Other error checking could be done in a similar manner. For example {{result()}} calls in query and range facets could be validated after {{AnalyticsRequestFactory.parse()}} is finished, this would greatly reduce the complexity in the {{(BasicAccumulator|FacetingAccumulator).getResult()}} and {{FacetingAccumulator.getQueryResult()}} methods. There are probably others, but that's the first that popped into my head.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org