You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by André Maldonado <an...@gmail.com> on 2010/03/03 20:50:01 UTC
Randomize MoreLikeThis
Hello.
I'm implementing More Like This functionality in my search request.
Everything works fine, but I need to randomize the return of this more like
this query. Something like this:
*First request:*
Query -> docId:528369
Results -> fields ... More like This <result name="528369" numFound="57162"
start="0"><doc><str name="docid">1</str></doc><doc><str
name="docid">2</str></doc>
*Second request:* (same query, other resultset for more like this)
Query -> docId:528369
Results -> fields ... More like This <result name="528369" numFound="57162"
start="0"><doc><str name="docid">3</str></doc><doc><str
name="docid">4</str></doc>
There is a way to do it?
Thank's
"Então aproximaram-se os que estavam no barco, e adoraram-no, dizendo: És
verdadeiramente o Filho de Deus." (Mateus 14:33)
Re: Randomize MoreLikeThis
Posted by André Maldonado <an...@gmail.com>.
Even that I do what you said, the MoreLikeThis resulset will only change
when the index changes.
Or I'm wrong?
Thank's
"Então aproximaram-se os que estavam no barco, e adoraram-no, dizendo: És
verdadeiramente o Filho de Deus." (Mateus 14:33)
On Wed, Mar 3, 2010 at 18:03, Otis Gospodnetic
<ot...@yahoo.com>wrote:
> The first thing that came to mind is to index a random number with each doc
> and sort by that.
>
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Hadoop ecosystem search :: http://search-hadoop.com/
>
>
>
> ----- Original Message ----
> > From: André Maldonado <an...@gmail.com>
> > To: solr-user@lucene.apache.org
> > Sent: Wed, March 3, 2010 2:50:01 PM
> > Subject: Randomize MoreLikeThis
> >
> > Hello.
> >
> > I'm implementing More Like This functionality in my search request.
> > Everything works fine, but I need to randomize the return of this more
> like
> > this query. Something like this:
> >
> > *First request:*
> > Query -> docId:528369
> > Results -> fields ... More like This
> > start="0">1
> > name="docid">2
> >
> > *Second request:* (same query, other resultset for more like this)
> > Query -> docId:528369
> > Results -> fields ... More like This
> > start="0">3
> > name="docid">4
> >
> > There is a way to do it?
> >
> > Thank's
> >
> > "Então aproximaram-se os que estavam no barco, e adoraram-no, dizendo: És
> > verdadeiramente o Filho de Deus." (Mateus 14:33)
>
>
Re: Randomize MoreLikeThis
Posted by Otis Gospodnetic <ot...@yahoo.com>.
The first thing that came to mind is to index a random number with each doc and sort by that.
Otis
----
Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Hadoop ecosystem search :: http://search-hadoop.com/
----- Original Message ----
> From: André Maldonado <an...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Wed, March 3, 2010 2:50:01 PM
> Subject: Randomize MoreLikeThis
>
> Hello.
>
> I'm implementing More Like This functionality in my search request.
> Everything works fine, but I need to randomize the return of this more like
> this query. Something like this:
>
> *First request:*
> Query -> docId:528369
> Results -> fields ... More like This
> start="0">1
> name="docid">2
>
> *Second request:* (same query, other resultset for more like this)
> Query -> docId:528369
> Results -> fields ... More like This
> start="0">3
> name="docid">4
>
> There is a way to do it?
>
> Thank's
>
> "Então aproximaram-se os que estavam no barco, e adoraram-no, dizendo: És
> verdadeiramente o Filho de Deus." (Mateus 14:33)