How to do custom scoring using query parameters?

2011-06-01 Thread ngaurav2005
Hi All, We need to score documents based on some parameters received in query string. Since this was not possible via function query as we need to use "if" condition, which can be emulated through map function, but one of the output values of "if" condition has to be function, where as map only ac

Re: Change default scoring formula

2011-06-01 Thread ngaurav2005
Thanks Tomas. Well I am sorting results by a function query. I donot want solr to do extra effort in calculating score for each document and eat up my cpu cycles. Also, I need to use "if" condition in score calculation, which I emulated through "map" function, but map function do not accept a funct

Change default scoring formula

2011-06-01 Thread ngaurav2005
Hi All, I need to change the default scoring formula of solr. How shall I hack the code to do so? also, is there any way to stop solr to do its default scoring and sorting? Thanks, Gaurav -- View this message in context: http://lucene.472066.n3.nabble.com/Change-default-scoring-formula-tp301219

Sorting function with condition

2011-05-21 Thread ngaurav2005
Hi all, I had to do sorting on search results based on some condition inside sort function. Let me put forward with example: Query: q=timestamp:123454321&sort=somefunction asc But this "Somefunction" has to have if condition inside it, like If age =10, sum(value,x) Else sum(value,y) Actually s