Hi all,
I'm trying to set a general boost to a field ("sortScore") but when there's a tie, I also want the newer document appearing before the older one.
basically what I tried to achieve is:
q={!boost b=sortScore}{!boost b=recip(ms(NOW/HOUR,dateNewRelevant),3.16e-11,1,1)}*:*
However, even Solr does not quite give me the correct result. I tried to do this with Solrnet but it's not possible because I would need to add LocalParams and this does not allow duplicated keys (in my case "boost b" would be the key for both prefixes).
I tried all kinds of things using standard query parser but never got to the result I want.
Instead, I tried using edismax query parser (using LocalParams in setting type = edismax) and then using extra params ("bf" for recip(ms(NOW/HOUR,dateNewRelevant),3.16e-11,1,1) and "boost" for my field "sortScore") which looks better but not quite right either.
Is there a way to tell Solr, that sortScore is more important than my "dateNewRelevant" field?
I was just wondering if edismax is the right way to go? Why does LocalParams not allow me to add the same key twice in Solrnet, when I can do it using the Solr Admin UI?
Any help is really appreciated.
Kind Regards,
Pascal