|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Faceting questionI've been struggling with this a bit so here goes:
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? Thanks! |
|
|
Re: Faceting question: 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 |
|
|
RE: Faceting questionYou mean, when it says that facet term "foo" has 10 documents, you want
those 10 ids? I think that will require a further query from your application. Peter -----Original Message----- From: Cric Digs [mailto:cricdigs@...] Sent: Thursday, September 20, 2007 12:43 PM To: solr-user@... Subject: Faceting question I've been struggling with this a bit so here goes: 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? Thanks! |
|
|
Re: Faceting questionlol 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 <hossman_lucene@...> 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 > > |
|
|
RE: Faceting questionFaceting 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:cricdigs@...] Sent: Friday, September 21, 2007 7:36 AM To: solr-user@... 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 <hossman_lucene@...> 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 > > > > -Hoss > > |
|
|
RE: Faceting questionThanks 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..
|
|
|
RE: Faceting questionHey, 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:cricdigs@...] Sent: Friday, September 21, 2007 10:04 AM To: solr-user@... 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:cricdigs@...] > Sent: Friday, September 21, 2007 7:36 AM > To: solr-user@... > 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 <hossman_lucene@...> 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. |
| Free embeddable forum powered by Nabble | Forum Help |