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.

eZ debug

Timing: Jan 29 2025 23:49:24
Script start
Timing: Jan 29 2025 23:49:24
Module start 'layout'
Timing: Jan 29 2025 23:49:24
Module start 'content'
Timing: Jan 29 2025 23:49:24
Module end 'content'
Timing: Jan 29 2025 23:49:24
Script end

Main resources:

Total runtime0.0122 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.1563151.2109
Module start 'layout' 0.00450.0016 739.367236.6563
Module start 'content' 0.00610.0048 776.023499.2188
Module end 'content' 0.01090.0013 875.242237.9766
Script end 0.0122  913.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002218.3039140.0002
Check MTime0.00108.5394140.0001
Mysql Total
Database connection0.00086.163910.0008
Mysqli_queries0.001612.746630.0005
Looping result0.00000.082210.0000
Template Total0.00107.910.0010
Template load0.00086.230410.0008
Template processing0.00021.608510.0002
Override
Cache load0.00054.185610.0005
General
dbfile0.001915.345280.0002
String conversion0.00000.048940.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