Thanks for your advice and for your comments. In fact, we don't use facets to offer a facet UI to user, but to analyze user request, then send a second request to Solr.
Lot of requests have lot of answers (often more then a thousand), so we need to filter user request with fq parameter, if possible. Best, Elisabeth 2011/7/5 Chris Hostetter <hossman_luc...@fucit.org> > > : I have two fields TOWN and POSTALCODE and I want to concat those two in > one > : field to do faceting > > As others have pointed out, copy field doesn't do a "concat", it just > adds the field values from the source field to the desc field (so with > those two <copyField/> lines you will typically get two values for each > doc in the dest field) > > if you don't wnat to go the DIH route, and you don't want to change your > talend process, you could use a simple UpdateProcessor for this (update > processors are used to process add/delete requests no matter what > source the come from, before analysis happens) ... but i don't think we > have any off the shelf "Concat" update processors in solr at the moment > > there is a patch for a a Script based on which might be helpful.. > https://issues.apache.org/jira/browse/SOLR-1725 > > All of that said, based on what you've described about your usecase i > would question from a UI standpoint wether this field would actually a > good idea... > > isn't there an extremely large number of postal codes even in a single > city? > > why not let people fact on just the town field first, and then only when > they click on one, offer them a facet on Postal code? > > Otherwise your facet UI is going to have a tendenzy to look like this... > > Gender: > * Male (9000 results) > * Female (8000 results) > Town/Postal: > * paris, 75016 (560 results) > * paris, 75015 (490 results) > * paris, 75022 (487 results) > * boulogne sur mer 62200 (468 results) > * paris, 75018 (465 results) > * (click to see more) > Color: > * Red (900 results) > * Blue (800 results) > > ...and many of your users will never find the town they are looking for > (let alone the post code) > > > -Hoss >