public void addQueryParams(QueryParams queryParams) {
   // restart strategy
   strategy = null;
   this.queryParams = queryParams;
   alfa = queryParams.getQueryConfiguration().getDoubleProperty("sigmoide.distance.alfa");
   beta = queryParams.getQueryConfiguration().getDoubleProperty("sigmoide.distance.beta");
   alfa2 = queryParams.getQueryConfiguration().getDoubleProperty("sigmoide.distance.alfa.2");
 }
 private void initStrategy() {
   if (strategy == null) {
     String startegyClassName;
     if (queryParams != null) {
       startegyClassName =
           queryParams.getQueryConfiguration().getProperty("scorer.spatial.score.strategy");
     } else {
       startegyClassName = ConfigProperties.getProperty("scorer.spatial.score.strategy");
     }
     try {
       strategy = (ISpatialScoreStrategy) Class.forName(startegyClassName).newInstance();
     } catch (ClassNotFoundException e) {
       logger.error(e, e);
     } catch (IllegalAccessException e) {
       logger.error(e, e);
     } catch (InstantiationException e) {
       logger.error(e, e);
     }
     strategy.init(
         biggerDiagonal,
         queryParams,
         iSpatialDistancesWrapper,
         diagonalIndex,
         internalCircleRadiumIndex);
   }
 }