Forums / Extensions / eZ Find / Is it possible to get facets of solr subattributes?

Is it possible to get facets of solr subattributes?

Author Message

Ivo Lukac

Wednesday 20 July 2011 5:18:47 am

Does anyone tried that or I need to dig into code? :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Matthieu Sévère

Wednesday 20 July 2011 5:30:53 am

Hello Ivo,

Yes no problem :

{def $fieldSearchFacets = array(      
hash( 'field', 'meta_path_si', 'name', 'Galaxy'|i18n('galaxy/search')),      
hash( 'field', 'subattr_tags_general___name_s', 'name', 'General'|i18n('galaxy/search')),
.....

--
eZ certified developer: http://ez.no/certification/verify/346216

Ivo Lukac

Wednesday 20 July 2011 6:36:48 am

"

Hello Ivo,

Yes no problem :

{def $fieldSearchFacets = array(      
hash( 'field', 'meta_path_si', 'name', 'Galaxy'|i18n('galaxy/search')),      
hash( 'field', 'subattr_tags_general___name_s', 'name', 'General'|i18n('galaxy/search')),
.....
"

Excellent, I wasn't 100% sure :) 

Thanks

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac