Re: How to show some documents ahead of others - requirements

2015-10-10 Thread Upayavira
I've seen a similar requirement to this recently. Basically, a sorting requirement that is close to impossible to implement as a scoring/boosting formula, because the *position* of the result features in the score, and that's not something I believe can be done right now. The way we solved the

Re: How to show some documents ahead of others - requirements

2015-10-10 Thread Erick Erickson
Would result grouping work here? If the group key was "paid", then you'd get two groups back, "paid" an "unpaid". Within each group you'd have results ordered by rank. This would work for a page or two, but eventually you'd be in a spot where you'd have to over sample, i.e. return pages*X in each

Re: How to show some documents ahead of others - requirements

2015-10-10 Thread liviuchristian
Hi Upayavira & Walter & everyone else About the requirements:1. I need to return no more than 3 paid results on a page of 12 results2. Paid results should be sorted like this: let's say a user is searching for: "chocolate almonds cake"Now, lets say that 2000 results match the query and there

Re: How to show some documents ahead of others - requirements

2015-10-10 Thread Walter Underwood
By far the easiest solution is to do two queries from the front end. One requesting three paid results, and one requesting nine unpaid results. If all the results are in one collection, use “fq” to select paid/unpaid. That is going to be fast and there is zero doubt that it will do the right