Active
Project:
Facetapi Slider
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2012 at 18:52 UTC
Updated:
29 Jun 2013 at 16:27 UTC
When I enable the Slider facet on a price field, this notice appears on the search results page:
Notice: Undefined index: name in apachesolr_index_key() (line 1681 of /var/www/drupal/greaves/public_html_module/sites/all/modules/contrib/apachesolr/apachesolr.module).
If I debug the $field variable in the apachesolr_index_key function, there is no 'name' in the field array. From this the $type_prefix is always set to 's' and the subsequent 'substr' fails.
Any ideas?
Comments
Comment #1
shailu29 commentedI am also getting this same error when I create custom facet.
Comment #2
ymakux commentedI faced the same problem. It seems nothing wrong with Slider module, you have to implement hook_facetapi_facet_info() properly if you use custom field
working example
My custom field (added via hook_apachesolr_index_documents_alter()) - iss_commerce_price_average This is numeric single field