lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Suchi Amalapurapu <>
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.
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?

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