Re: Forced Top Document

2007-10-25 Thread mark angelillo
Thanks for your thoughts, Chris. I agree with you about the user's experience. Snooth doesn't serve any ads/sponsored results -- the goal here is to make sure that the most recent document the user has acted on shows up top in searches for recent activity. My aim is to forcibly preserve the

Re: Forced Top Document

2007-10-25 Thread Walter Underwood
On 10/25/07 12:11 AM, "Chris Hostetter" <[EMAIL PROTECTED]> wrote: > this type of question typically falls into two use cases: > 1) "targeted ads" > 2) "sponsored results" 3) Best bets (editorial results) The query "house" should return "House, M.D." as the first hit, but that is rather hard

Re: Forced Top Document

2007-10-25 Thread Yonik Seeley
On 10/25/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : The typical use case, though, is for the featured document to be on top only > : for certain queries. Like in an intranet where someone queries 401K or > : retirement or similar, you want to feature a document about benefits that > : wo

Re: Forced Top Document

2007-10-25 Thread Chris Hostetter
: The typical use case, though, is for the featured document to be on top only : for certain queries. Like in an intranet where someone queries 401K or : retirement or similar, you want to feature a document about benefits that : would otherwise rank really low for that query. I have not be able

Re: Forced Top Document

2007-10-24 Thread Chris Hostetter
: So for example, to pop one document to the top of the index, i just run: : : "&q=field: value; id_700390+desc, date+desc" : : Works like a charm, even with multiple documents. : : "&q=field: value; id_700390+desc, id_604030+desc, date+desc" be wary of this, sorting on a field (even a dynamic

Re: Forced Top Document

2007-10-24 Thread mark angelillo
That's the ticket exactly, Kyle. What I have is the ID of my document, so I indexed a dynamic field with name id_*. Then I just set that field for each document with the proper ID. So for example, to pop one document to the top of the index, i just run: "&q=field: value; id_700390+desc, da

Re: Forced Top Document

2007-10-24 Thread Kyle Banerjee
> The typical use case, though, is for the featured document to be on top only > for certain queries. Like in an intranet where someone queries 401K or > retirement or similar, you want to feature a document about benefits that > would otherwise rank really low for that query. I have not be able

Re: Forced Top Document

2007-10-24 Thread Bill Fowler
gt; > > -Original Message- > > From: Matthew Runo [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 24, 2007 10:17 AM > > To: solr-user@lucene.apache.org > > Subject: Re: Forced Top Document > > > > I'd love to know this, as I just

RE: Forced Top Document

2007-10-24 Thread Charlie Jackson
@lucene.apache.org Subject: Re: Forced Top Document This method Charlie suggested will work just fine with a minor tweak. For relevancy sorting ?q=foo OR (foo AND id:bar) For nonrelevancy sorting, all you need is a multilevel sort. Just add a bogus field that only the important document contains. Then sort by

Re: Forced Top Document

2007-10-24 Thread Mike Klaas
On 24-Oct-07, at 10:56 AM, Charlie Jackson wrote: Yes, this will only work if the results are sorted by score (the default). One thing I thought of after I sent this out was that this will include the specified document even if it doesn't match your search criteria, which may not be what you

Re: Forced Top Document

2007-10-24 Thread Kyle Banerjee
; Sent: Wednesday, October 24, 2007 12:44 PM > To: solr-user@lucene.apache.org > Subject: Re: Forced Top Document > > Charlie, > > That's interesting. I did try something like this. Did you try your > query with a sorting parameter? > > What I've read suggests th

RE: Forced Top Document

2007-10-24 Thread Daniel Pitts
, but it would be nice if solr could handle it for us. > -Original Message- > From: Charlie Jackson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 24, 2007 10:57 AM > To: solr-user@lucene.apache.org > Subject: RE: Forced Top Document > > Yes, this will only w

RE: Forced Top Document

2007-10-24 Thread Charlie Jackson
mark angelillo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 12:44 PM To: solr-user@lucene.apache.org Subject: Re: Forced Top Document Charlie, That's interesting. I did try something like this. Did you try your query with a sorting parameter? What I've read suggests that

Re: Forced Top Document

2007-10-24 Thread mark angelillo
as ?q=foo OR id:bar^1000 Tried this on my installation and it did, indeed push the document specified to the top. -Original Message- From: Matthew Runo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 10:17 AM To: solr-user@lucene.apache.org Subject: Re: Forced Top Document

RE: Forced Top Document

2007-10-24 Thread Charlie Jackson
al Message- From: Matthew Runo [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 10:17 AM To: solr-user@lucene.apache.org Subject: Re: Forced Top Document I'd love to know this, as I just got a development request for this very feature. I'd rather not spend time on it

Re: Forced Top Document

2007-10-24 Thread Matthew Runo
I'd love to know this, as I just got a development request for this very feature. I'd rather not spend time on it if it already exists. ++ | Matthew Runo | Zappos Development | [EMAIL PROTECTED] | 702-943-7833 +