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.

eZ debug

Timing: Jan 30 2025 19:49:17
Script start
Timing: Jan 30 2025 19:49:17
Module start 'layout'
Timing: Jan 30 2025 19:49:17
Module start 'content'
Timing: Jan 30 2025 19:49:17
Module end 'content'
Timing: Jan 30 2025 19:49:17
Script end

Main resources:

Total runtime0.0265 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.2734151.2266
Module start 'layout' 0.00660.0054 739.5000220.7188
Module start 'content' 0.01200.0128 960.2188998.9922
Module end 'content' 0.02480.0017 1,959.210933.9922
Script end 0.0265  1,993.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.2845140.0002
Check MTime0.00114.1046140.0001
Mysql Total
Database connection0.00093.394910.0009
Mysqli_queries0.004918.281830.0016
Looping result0.00000.089810.0000
Template Total0.00124.510.0012
Template load0.00093.297010.0009
Template processing0.00031.145410.0003
Override
Cache load0.00052.068910.0005
General
dbfile0.00030.964880.0000
String conversion0.00000.030540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs