eZ Find 2 facets on attributes

Author Message

Emmanuel Courmont

Sunday 05 April 2009 3:10:34 pm

Hi,

I'm trying to work with facets but not with content classes but attributes, and I'm getting a weird behavior of the result.

Based on ezwebin search template, I changed the link "class" with "attribute name" and the facet field is <class_identifier>/<attribute_identifier> as follow:

 <a href={concat( $baseURI, '&facet_field=community/version' )|ezurl}>{'Version'|i18n( 'design/ezwebin/content/search' )}</a>

My attribute "version" is an ezselection of text and numbers (ezPublish, 4.0, 3.9 ...).

When I click on "version" I got:
Groups: ezpublish(3) ez(3) publish(3) 0(1) 4(1) ...

I expected:
Groups: ezpublish(3) 4.0(1) ...

I'm using ezPublish 4.0.1, ezFind2.0, Debian.

Max Keil

Thursday 25 June 2009 9:17:18 am

Hi,

I've the same Problem with eZ Find. Do you already solved it or is it a bug because of the returned index from solr?

Add:
Ok, now I got it. You should define ezselection as a string:

[SolrFieldMapSettings]
DatatypeMap[ezselection]=string

Then it returns the values correctly, but other problem is appear - now you can search only for complete strings and not for parts of the text in ezselection. I'm on to create my own attribute index for ezselection - then you should be able to search for parts and option ids.

Other Hotfix is to use ezselection as int and change the ezselection datatype to deliver the option_id as metaData ;-)

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

H-Works Agency

Wednesday 06 January 2010 11:53:15 am

Same problem how to add facets on classes attributes ?

EZP is Great

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.