Re: Question about rating documents

2009-01-29 Thread Otis Gospodnetic
Message > From: Reece > To: solr-user@lucene.apache.org > Sent: Thursday, January 29, 2009 3:31:22 PM > Subject: Re: Question about rating documents > > Okay, so what if I added a "rating" field users could update from like > 1-5, and then did something like th

Re: Question about rating documents

2009-01-29 Thread Reece
Okay, so what if I added a "rating" field users could update from like 1-5, and then did something like this: /solr/select?indent=on&debugQuery=on&rows=99&q=body:+something AND type:I _val_:product(score, rating); _val_ desc, id desc Would that sort the resultset by the product of the score and t

Re: Question about rating documents

2009-01-29 Thread Reece
Re-indexing so much would be a pretty big pain. I do have a unique ID for each document though that I use for updating them every day as they change. -Reece On Thu, Jan 29, 2009 at 2:40 PM, Erick Erickson wrote: > This may not be practical, as it would involve re-indexing > all your document

Re: Question about rating documents

2009-01-29 Thread Erick Erickson
This may not be practical, as it would involve re-indexing all your documents periodically, but here goes anyway... You could think about *index-time* boosts. Somewhere you keep a record of the recommendations, then re-index your corpus adding some suitable boost to each field in your document bas

Re: Question about rating documents

2009-01-29 Thread Reece
Hmm, I already boost certain fields, but from what I know about it you would need to know the boost value ahead of time which is not possible as it would be a different boost for each document depending on how it was rated.. I did think of one thing though. If I had a field that had a value of 1-

Re: Question about rating documents

2009-01-29 Thread Matthew Runo
You could use a boost function to gently boost up items which were marked as more popular. You would send the function query in the "bf" parameter with your query, and you can find out more about syntax here: http://wiki.apache.org/solr/FunctionQuery Thanks for your time! Matthew Runo Soft

Question about rating documents

2009-01-29 Thread Reece
Currently I'm using SOLR 1.2 to index a few million documents. It's been requested that a way for users to rate the documents be done so that something rated higher would show up higher in search results and vice verse. I've been thinking about it, but can't come up with a good way to do this and