Details
-
Improvement
-
Resolution: Obsolete
-
Medium
-
3.10.0, 3.10.0beta1, 4.0.0, 4.0.0alpha1, 4.0.0beta1
-
None
-
Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5') all
Database and version: all
Browser (and version): all
Description
Hi,
I'm on to implement my own datatype as a facet in eZ Find. The function ezfSolrDocumentFieldBase->getData() works fine and I also get some facet results. Now I seen that "class_id" is also a facet and the result of this array is more informative baceuse of class names and ids.
I started to search where itt comes from and found an interesting point:
ezfSearchResultInfo->attribute()
case 'facet_fields': contains a switch-case structure to choose the right mapping. That's why "class_id" facet looks so pretty.
I think it would be a great enhancement if there would be a wrapper for custom cases - especially custom_attributes. It could be handled via ezfind.ini or automaticly with filenames. My intention is to show special informations for end-user without to fetch them in templates.
This could be also a solution for this ticket:
http://issues.ez.no/IssueView.php?Id=15006&activeItem=9