Share » Forums » Extensions » eZ Find » Aliasing facets in solr

Aliasing facets in solr

Aliasing facets in solr

Friday 01 April 2011 4:53:54 am - 3 replies

Modified on Friday 01 April 2011 4:54:49 am by H-Works Agency

Author Message

Philippe VINCENT-ROYOL

Friday 01 April 2011 6:01:50 am

Hi,

Yes its possible to "merge" two different facet. Its not a clean method but it works.

For example if your city attr looks like in solr : attr_city_t

You ll have value like attr_city_t:paris and attr_city_t:london

When you show link, just add something like &filter[attr_city_t][]=paris&filter[attr_city_t][]=london (depends how you generate your url)

Thats all

Philippe

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

H-Works Agency

Friday 01 April 2011 7:29:49 am

Yes the prob is that results count wont be affected i think.

EZP is Great

Philippe VINCENT-ROYOL

Friday 01 April 2011 7:39:51 am

If you object have only one city, you could add count result.. else maybe try to look at advanced syntax via solr : http://wiki.apache.org/solr/SolrQuerySyntax

(im talking before filtrering)

After filtring be careful to add an "or" with your 2 attr :)

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

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

36 542 Users on board!

Forums menu