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.