Re: faceting on field with two values

2011-07-06 Thread elisabeth benoit
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 possib

Re: faceting on field with two values

2011-07-05 Thread Chris Hostetter
: 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 lines you will typically get two values fo

Re: faceting on field with two values

2011-07-05 Thread Marian Steinbach
On Tue, Jul 5, 2011 at 10:21, elisabeth benoit wrote: > ... > > so do you think the dih (which I just discovered) would be appropriate to do > the whole process (read a database, read fields from xml contained in some > of the database columns, add informations from csv file)??? > > from what I ju

Re: faceting on field with two values

2011-07-05 Thread elisabeth benoit
> fields > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/faceting-on-field-with-two-values-tp3139870p3139934.html > Sent from the Solr - User mailing list archive at Nabble.com. >

Re: faceting on field with two values

2011-07-05 Thread roySolr
Are you using the DIH?? You can use the transformer to concat the two fields -- View this message in context: http://lucene.472066.n3.nabble.com/faceting-on-field-with-two-values-tp3139870p3139934.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: faceting on field with two values

2011-07-05 Thread Bill Bell
The easiest way is to concat() the fields in SQL, and pass it to indexing as one field already merged together. Thanks, On 7/5/11 1:12 AM, "elisabeth benoit" wrote: >Hello, > >I have two fields TOWN and POSTALCODE and I want to concat those two in >one >field to do faceting > >My two fields ar

faceting on field with two values

2011-07-05 Thread elisabeth benoit
Hello, I have two fields TOWN and POSTALCODE and I want to concat those two in one field to do faceting My two fields are declared as followed: The concat field is declared as followed: and I do the copyfield as followed: When I do faceting on TOWN_POSTALCODE field, I only get