Thanks for the heads up. Can anyone point me to (or provide me with) an example of writing a function query?
-Derek On Mon, Nov 17, 2008 at 8:17 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote: > A function query is the likely candidate - no such quantization > function exists, but it would be relatively easy to write one. > > -Yonik > > On Mon, Nov 17, 2008 at 8:17 PM, Derek Springer <[EMAIL PROTECTED]> wrote: > > Hello, > > I am currently performing a query to a Solr index I've set up and I'm > trying > > to 1) sort on the score and 2) sort on the date_created (a custom field > I've > > added). The sort command looks like: sort=score+desc,created_date+desc. > > > > The gist of it is that I will 1) first return the most relevant results > then > > 2) within those results, return the most recent results. However, the > issue > > I have is that the score is a decimal value that is far to precise (e.g. > > 2.3518934 vs 2.2173865) and will therefore never "collide" and trigger > the > > secondary sort on the date. > > > > The question I am asking is if anyone knows a way to produce a score that > is > > more coarse, or if it is possible to force the score to return as an > > integer. That way I could have the results collide on the score more > often > > and therefore sort on the date as well. > > > > Thanks! > > -Derek > > > -- Derek B. Springer Software Developer Mahalo.com, Inc. 902 Colorado Ave., Santa Monica, CA 90401 [EMAIL PROTECTED]