Re: FunctionQuery in a custom request handler

2008-03-25 Thread Chris Hostetter
: It worked, but the problem is that I fail to get a decent ration between my : "other_queries" and "timebias". I would like to keep timebias at ~15% max : (for totally fresh docs), kind of dropping to nothing at ~one week olds. : Adding to BooleanQuery sums the subquery scores, so I guess there's

Re: FunctionQuery in a custom request handler

2008-03-20 Thread evol__
Hi again, digging this one up. This is the code I've used in my handler. ReciprocalFloatFunction tb_valuesource; tb_valuesource = new ReciprocalFloatFunction(new ReverseOrdFieldSource(TIMEBIAS_FIELD), m, a, b); FunctionQuery timebias = new FunctionQuery(tb_valuesource);

Re: FunctionQuery in a custom request handler

2008-01-16 Thread Chris Hostetter
: How do I access the ValueSource for my DateField? I'd like to use a : ReciprocalFloatFunction from inside the code, adding it aside others in the : main BooleanQuery. The FieldType API provides a getValueSource method (so every FieldType picks it's own best ValueSource implementaion). -Hoss