Grouping with ezFind

Author Message

Lars Eirik R

Friday 05 November 2010 3:33:13 am

Is there a way to have ezfind group all results based on the different filtered queries.

say i would like to filter based on article/title and product/name

I would like to have ezfind return a list first of all articles with a title matching my query in an array.

The next array woud contain thos products which have the same name as in the query.

I realized that facets could probably help me out, but i am not looking for a drill down search , this should only be metadriven on the website, not as an interactive search by the end user.

Hope you are able to provide me with an example on how to do such grouping.

Today i currently execut a filtered search for each of the classes i would like to match the query with, and this is probably not the most efficient i guess.

Ivo Lukac

Friday 05 November 2010 4:46:25 am

AFAIK there is no grouping in search results.

But you have boosting options. You can boost article class which will result in article objects showing up before product. Boosting per class is done in ezfind.ini

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Ivo Lukac

Friday 05 November 2010 5:22:30 am

Forgot to mention that you will need to reindex all content after ezfind.ini changes...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Matthieu Sévère

Friday 05 November 2010 5:56:37 am

FYI grouping or field collapsing has just been commited to Solr trunk. See : http://wiki.apache.org/solr/FieldCollapsing

I should be part of next release and I hope bundled with next eZ Find release :)

Cheers

--
eZ certified developer: http://ez.no/certification/verify/346216

Lars Eirik R

Friday 05 November 2010 6:27:45 am

Thanks for the answers Ivo and Matthieu.

Probably will have to go with doing separate searches for now.

It will indeed be awesome when fieldCollapsing makes it to eZ Find.

Paul Borgermans

Friday 05 November 2010 4:53:06 pm

It will soon, I'll take care of it :) .... grouping (user terminology) / fieldCollapsing(technical) is another way of presenting users with more navigation options (resembles facets in a way).

Cheers

Paul

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

Matthieu Sévère

Monday 08 November 2010 12:17:34 am

Cool ! Thank you Paul !

--
eZ certified developer: http://ez.no/certification/verify/346216

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