How to have all keywords in facets list

Author Message

Nicolas Jessel

Monday 07 December 2009 12:43:03 am

Hello,

I would like to have, in my facets, all keywords for each classes.

In facets array, we have this:

facets[]=array( 'field' => 'article/tags');

But this fetch only keywords in tags attribute for article class.

Nicolas Pastorino given me a solution:

facets[]=array( 'field' => 'attr_tags_k');

And with that it's working fine, thanks to him.

Bye.

Nicolas Pastorino

Monday 07 December 2009 1:19:15 am

Hi Nicolas,

Indeed, the normal selector for pointing to a Solr field takes the following form:

<content-class>/<content-attribute>/[<subattribute>]

meaning that pointing to a content attribute necessarily narrows the results down to a given content class. The following syntax is not yet supported:

*/<content-attribute>

and can be "simulated" by directly passing the solr field name, as shown by Nicolas above.

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Franck Grenier

Tuesday 29 December 2009 6:41:05 am

Hello,

I'm having troubles with ezfind facets. I choose several 'catégories' on my 'news' content through an object relation attribute.

When I put this 'catégories' facet in ezfind, the 'categories" are not parsed correctly and their titles are cut.

For example, my 'Sport/Loisrs' category returns two facets : 'Sports' and 'Loisirs'.

The search is still effective but I would like to have my full real category titles.

What's wrong ?

Developer at Open Wide

Paul Borgermans

Saturday 02 January 2010 12:14:57 pm

Correct, better handling will be provided with ez find 2.2: attributes are indexed in the same way for searching and faceting currently (ez find 2.1). In the next release, for a single attribute, multiple fields can be created that have optimal behaviour for searching/filtering versus faceting/sorting. For object relation attributes, this will be possible for meta-data as well as their respective atttributes.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Lars Eirik R

Wednesday 19 May 2010 2:22:43 am

Hi.

Is there a way to append the template code array to have ezfind search across all classes that have a tag.

I have sucessfully modified the php function code which is called by the ezfind operator for search.

Is there a way for me in my template do modifications to this array or do i need to fix it in the php file?

I changed the keywords so that only acets[]=array( 'field' => 'attr_tags_k') ; is now added to the facets array in the php function getDefaultFacets.

Any pointers on how to do this in template code would be nice.

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 18 2025 02:09:40
Script start
Timing: Jan 18 2025 02:09:40
Module start 'layout'
Timing: Jan 18 2025 02:09:40
Module start 'content'
Timing: Jan 18 2025 02:09:41
Module end 'content'
Timing: Jan 18 2025 02:09:41
Script end

Main resources:

Total runtime0.5919 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.1797152.6406
Module start 'layout' 0.00740.0046 741.820339.4766
Module start 'content' 0.01210.5782 781.2969680.9609
Module end 'content' 0.59030.0015 1,462.257816.1328
Script end 0.5918  1,478.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.6411160.0002
Check MTime0.00140.2399160.0001
Mysql Total
Database connection0.00080.137010.0008
Mysqli_queries0.532589.9731710.0075
Looping result0.00080.1353690.0000
Template Total0.549592.920.2748
Template load0.00230.386620.0011
Template processing0.547292.460920.2736
Template load and register function0.00020.032310.0002
states
state_id_array0.00170.288710.0017
state_identifier_array0.00160.265920.0008
Override
Cache load0.00200.3318390.0001
Sytem overhead
Fetch class attribute can translate value0.00050.079450.0001
Fetch class attribute name0.00100.168480.0001
XML
Image XML parsing0.00140.240050.0003
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00190.3272290.0001
String conversion0.00000.002240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs