: 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 no way : of controlling the ratio, right?
not as precisely as it sounds like you want ... you can fudge the boost values to make cluses roughly worth X times other clauses, but you can't max out the contribution of one clause if another clause scores really poorly (because of low tf or high idf or whatever) : The problem is this crashes at the last line with : : Mar 20, 2008 6:59:57 PM org.apache.solr.common.SolrException log : SEVERE: java.lang.NullPointerException : at si.david.MyRequestHandler.handleRequestBody(Unknown Source) : at : org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:117) there's really no way of knowing which line caused the NPE because you've compiled without debuging info (hence the "Unknown Source") ... it might be a line in that method that you didn't include in your email, if it is one of the lines you included, then i'm guessing it's that you haven't actaully initialized "searher" at the point where you try to use it (nothing else jumps out at me that would cause an NPE without adding another method call to the stack trace) -Hoss