ezfsolrdocumentfieldobjectrelation

UNIX name Owner Status
ezfsolrdocumentfieldobjectrelation gilles guirand beta
Version Compatible with
0.1 4.x
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

  1. Download the file (or use SVN)
  2. Select your version : eZ Find 2.1 or eZ Find 2.2 with the context support (search, facet, sort, ...)
  3. Rename (CustomMap[ezobjectrelationlist]=ezfSolrDocumentFieldObjectRelation) or replace the default ezfind/classes/ezfsolrdocumentfieldobjectrelation.php
  4. Set the datatype type map to string (ezfind.ini) : DatatypeMap[ezobjectrelationlist]=string
  5. Re-index your content : php extension/ezfind/bin/php/updatesearchindexsolr.php --clean

This project has no reviews yet. Be the first one to review it!

No forum messages yet.