lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suchi Amalapurapu <su...@bloomreach.com>
Subject Query time boosts vs static boost function defined in solrconfig.xml
Date Fri, 15 Feb 2013 10:21:14 GMT
Query time boost function seem to be loaded via local params while boost
functions defined in solrconfig.xml get added to a request globally.
QParser.geParams
public String getParam(String name) {
    String val;
    if (localParams != null) {
      val = localParams.get(name);
      if (val != null) return val;
    }
    return params.get(name);
  }
indicates we can use only one of them with local params overriding the
global one's.

Is there a way to use both? The use case is that I want to apply
parameterized boosts on top of boost functions in solrconfig.xml

To simulate this functionality I can either
- Define a custom QParser.
- Define a custom RequestHandler/SearchComponent
In both cases I can inject local params into request's params and further
do string replace's for some args.
Is there a better way of doing things?

Also are static boost methods in solrconfig.xml loaded only once vs
frequent parsing of queries in query time boosts?
Suchi

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message