enhanced the defaut ezfind/classes/ezfsolrdocumentfieldobjectrelation.php
What's for ?
This PHP class enhance the defaut ezfind/classes/ezfsolrdocumentfieldobjectrelation.php
The default current ezfind/classes/ezfsolrdocumentfieldobjectrelation.php is not usable for objet relation(s) faceting. This PHP class enable objet relation(s) faceting using a specific attribute or the 'name' attribute
Template using
{set search=fetch( ezfind , search ,
hash( query , $search_text,
'facet', array(
hash('field', 'myclass/myattribute/mysubattribute')
)
)}
OR
{set search=fetch( ezfind , search ,
hash( query , $search_text,
'facet', array(
hash('field', 'myclass/myattribute/name')
)
)}
How to install
- Download the file (or use SVN)
- Select your version : eZ Find 2.1 or eZ Find 2.2 with the context support (search, facet, sort, ...)
- Rename (CustomMap[ezobjectrelationlist]=ezfSolrDocumentFieldObjectRelation) or replace the default ezfind/classes/ezfsolrdocumentfieldobjectrelation.php
- Set the datatype type map to string (ezfind.ini) : DatatypeMap[ezobjectrelationlist]=string
- Re-index your content : php extension/ezfind/bin/php/updatesearchindexsolr.php --clean
ezfsolrdocumentfieldobjectrelation.php upgrade for ezfind 2.2
Monday 19 April 2010 12:07
gilles guirand