Re: Shuffling results

2014-07-24 Thread Joel Bernstein
Here's blog describing the RankQuery API: http://heliosearch.org/solrs-new-rankquery-feature/ Joel Bernstein Search Engineer at Heliosearch On Thu, Jul 24, 2014 at 6:22 PM, Joel Bernstein wrote: > This is the kind of use case the RankQuery API was created for. It allows > you to write your ow

Re: Shuffling results

2014-07-24 Thread Joel Bernstein
This is the kind of use case the RankQuery API was created for. It allows you to write your own Lucene ranking collector and plug it in. It's an expert level java API so you'll need to program in Java and understand a lot about how Lucene collectors work, but it's cool stuff to learn. Joel Berns

Re: Shuffling results

2014-07-24 Thread babenis
Could you possibly elaborate on what that function could look like and how to use it? I have an ecommerce site with lots of products and some categories have 50 times more products than others, and i would like to "shuffle" resultset in a way that if the search is conducted by parent category id t

Re: Shuffling results

2009-05-26 Thread Yonik Seeley
On Mon, May 25, 2009 at 11:29 PM, yaymicro_bjorn wrote: > No, as I was trying to explain, I obviously don't want a totally random > result. I just want to mix it up a "little". Is there a way to achieve this > with solr? It doesn't exist yet, but adding a random function would allow you to combin

Re: Shuffling results

2009-05-25 Thread Avlesh Singh
> > I just want to mix it up a "little" > Sounds very subjective and open. Give this a thought - You can try multi-field sort with first sort being on the score (so that all the more relevant results ones appear first), and second being a sort on the random field (which shuffles the order of resu

Re: Shuffling results

2009-05-25 Thread yaymicro_bjorn
Hi Avlesh No, as I was trying to explain, I obviously don't want a totally random result. I just want to mix it up a "little". Is there a way to achieve this with solr? Bjorn Avlesh Singh wrote: > > If simply getting random results (matching your query) from Solr is your > requirement, then

Re: Shuffling results

2009-05-25 Thread Avlesh Singh
If simply getting random results (matching your query) from Solr is your requirement, then a dynamic RandomSortField is what you need. Details here - http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html Cheers Avlesh On Tue, May 26, 2009 at 6:54 AM, yaymicro_bjorn wrote: