Hey, that's the shift in outlook I was talking about: if this were MySQL, that would be a work-around; in Solr, building multiple indexes for special purposes IS the elegant solution! (Though creating a new fieldtype that does the concatenation automatically from two or more other fields, like a copyfield, would be nice). Any other approach will probably cut drastically into Solr's amazing speed at generating facets, since it will require touching the documents or other indexes at query time.
Peter -----Original Message----- From: cricdigs [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 10:04 AM To: solr-user@lucene.apache.org Subject: RE: Faceting question Thanks Peter. That will be my work-around, but I was hoping to find a more elegant solution ;) I am not that knowledgeable about the solr architecture but if there is a way it can be done in a more elegant way I might be willing to put the extra time to code it.. Binkley, Peter wrote: > > Faceting works on the terms in an index, so you can't get information > beyond those terms without doing extra work. You could build an extra > index used only for faceting that concatenates the information you > need from other fields, and then parse it out in your application: e.g. > "Tolkien, J.R.R.|35421". > > If you're doing this so that you can do precise follow-on searches, > though (where a user clicks on a link in a list of facets), you might > want to think about whether the author name gives you everything you > need. You may have two authors with the same name, who would show up > as a single facet if you don't tack the id on; but even if you do, how > is the user going to distinguish them? They'll just see two links, > maybe with opaque id numbers. So maybe the bare author name is good > enough. (I had a similar situation and found that getting away from a > relational-database approach and going with what Solr does best was > the best solution). > > Hope that helps, > > Peter > > -----Original Message----- > From: Cric Digs [mailto:[EMAIL PROTECTED] > Sent: Friday, September 21, 2007 7:36 AM > To: solr-user@lucene.apache.org > Subject: Re: Faceting question > > lol I agree with you Hoss - sorry for that > > Here's the thing: > I need additional information from the index - such as the id related > to a facet field. For example, say I am faceting on author names for a > book store, I would also like to get the author id along with the > author name to show a link (next to the author name) to say the author's bio page. > The author id is stored in the index but how do i get that back with > the facet results? > > > On 9/20/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: >> >> >> : I'm using faceting to get some results. I also want to get another >> field >> - >> : the id field along with it. Is it possible to get that somehow in >> the facet >> : results? >> >> you're going to have to elaborate on what it is you are trying to do >> ... i genuinely have no idea what you are asking (and i think i'm >> usually pretty good at reading between the lines and guessing what > people mean). >> >> >> >> -Hoss >> >> > > -- View this message in context: http://www.nabble.com/Faceting-question-tf4489342.html#a12824623 Sent from the Solr - User mailing list archive at Nabble.com.