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
>
>

Reply via email to