You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by ron visbord <ro...@gmail.com> on 2017/04/03 09:25:08 UTC

Error whan using percentile facet on multivalued fields (again)

Hi,

I'm using Solr 5.3.1. When trying to do a percentile facet on a multivalued
field I get the following exception -

*org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://host_name:8983/solr/core_name
<http://host_name:8983/solr/core_name>: can not use FieldCache on
multivalued field: attributes.size_num*
* at
org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:560)*
* at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:234)*
* at
org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:226)*
* at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:135)*
* at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:943)*
* at org.apache.solr.client.solrj.SolrClient.query(SolrClient.java:958)*

The query url is -
http://host_name:8983/solr/core_name/select?json.facet=%7B%22my_facet_name%22:%22percentile(attributes.size_num,70.0,80.0,90.0)%22%7D&rows=0

And the faceted fields schema is -

<schema name="my_schema" version="1.5">
...
    <dynamicField name="*_num" type="float" indexed="true"
stored="true" multiValued="true" omitNorms="false"/>
    <fieldType name="float" class="solr.TrieFloatField"
precisionStep="0" positionIncrementGap="0"/>
...
</schema>



I came across this thread from 2015 -
http://grokbase.com/t/lucene/solr-user/157dh11ffx/fieldcache-error-for-multivalued-fields-in-json-facets
In which Yonik says Solr 5.2 doesn't support *sum()* on multivalued fields.

*Is this also the case for percentiles in Solr 5.3.1? **Is there any
solution to this?*
*If not, Is this resolved in a more recent release of Solr?*

Thank you very much,
Ron Visbord