Examples of ConfigProperties


Examples of zh.solr.se.searcher.util.ConfigProperties

  public static final String PARAM_VALUE_TRUE       = "true";
  public static final String PARAM_VALUE_ALGORITHM_EXACT = "exact_match";
 

  public static int getRows(SolrParams queryParams) {
    ConfigProperties searchProperties = ConfigFactory.getInstance().getConfigProperties(ConfigFactory.SEARCH_CONFIG_PATH);
    int defaultRows = searchProperties.getInt(ConfigProperties.CONFIG_NAME_DEFAULT_ROWS, SearchResult.DEFAULT_PAGE_SIZE);
    int rows = queryParams.getInt(SolrUtil.PARAM_NAME_ROWS, defaultRows);

    return rows;
  }
View Full Code Here

Examples of zh.solr.se.searcher.util.ConfigProperties

   * Read the configured field boosts from config file
   * @param boostsFieldName different core had different boosts, and they are configured under different field name
   * @return the boosts as a map with the Solr field name as the key and the boost as the value
   */
  public static Map<String, Float> getFieldBoostsFromConfig(String boostsFieldName) {
    ConfigProperties searchProperties = ConfigFactory.getInstance()
          .getConfigProperties(ConfigFactory.SEARCH_CONFIG_PATH);
    String boostsStr = searchProperties.getProperty(boostsFieldName);
   
    return parseFieldBoosts(boostsStr);
  }
View Full Code Here

Examples of zh.solr.se.searcher.util.ConfigProperties

   
    return boostMap;
  }
 
  public static List<Float> getScaleFactorsFromConfig(String factorsFieldName) {
    ConfigProperties searchProperties = ConfigFactory.getInstance()
      .getConfigProperties(ConfigFactory.SEARCH_CONFIG_PATH);
    String factorsStr = searchProperties.getProperty(factorsFieldName);
   
    return parseScaleFactors(factorsStr);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.