This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Extensions » eZ Find » How to have all keywords in facets list
expandshrink

How to have all keywords in facets list

How to have all keywords in facets list

Monday 07 December 2009 9:43:03 am - 5 replies

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.

Monday 07 December 2009 10: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.

Tuesday 29 December 2009 3:41:05 pm

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 ?

Saturday 02 January 2010 9: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

Wednesday 19 May 2010 11: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.

Monday 16 July 2012 5:51:57 am

Quote from Paul Borgermans :

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

Hi Paul

We're now on eZ Find 2.7. What is the optimal solution now for the case above of faceting on all keywords attributes as opposed to just the article/tags attribute? Is there any documentation on how to achieve this?

Thanks!

Andy

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from