code: def __init__(self, params):
      self.solr_address = params["solr_address"]
      self.raw_solr_fields = params["raw_solr_fields"]
      self.solr = pysolr.Solr(
          self.solr_address, always_commit=True, timeout=100
      )
      self.rows = params["rows"]
      self.query = params["query"]
      self.keys = [k.strip() for k in params["keys"].split(",")]
      self.c = 0
      self.query_arguments = {
          "fl": "* score",
          "rows": self.rows,
          "defType": "edismax",
      }
  
      if params["boosting"] is not None:
          self.query_arguments["bf"] = params["boosting"]
  
file_path: BLINK/blink/candidate_generation.py
imports: import re
  import os
  import pysolr
  import sys
  import blink.candidate_retrieval.utils
label_desc: Use image node_id 1 to create a new BM45_Candidate_Generator object from inherited base classes: Candidate_Generator with example: obj = BM45_Candidate_Generator(params)