Class SolrUtil

java.lang.Object
org.apache.ofbiz.solr.SolrUtil

public final class SolrUtil extends Object
Solr utility class.
  • Method Details

    • makeSolrWebappUrl

      public static String makeSolrWebappUrl()
    • isSolrEcaEnabled

      public static boolean isSolrEcaEnabled()
    • getSolrWebappInfo

      public static ComponentConfig.WebappInfo getSolrWebappInfo()
    • isEcaTreatConnectErrorNonFatal

      public static boolean isEcaTreatConnectErrorNonFatal()
    • generateSolrDocument

      public static org.apache.solr.common.SolrInputDocument generateSolrDocument(Map<String,Object> context) throws GenericEntityException
      Throws:
      GenericEntityException
    • categoriesAvailable

      public static Map<String,Object> categoriesAvailable(String catalogId, String categoryId, String productId, boolean displayproducts, int viewIndex, int viewSize, String solrIndexName)
    • categoriesAvailable

      public static Map<String,Object> categoriesAvailable(String catalogId, String categoryId, String productId, String facetPrefix, boolean displayproducts, int viewIndex, int viewSize, String solrIndexName)
    • getInstance

      public static SolrUtil getInstance()
    • getHttpSolrClient

      public static org.apache.solr.client.solrj.impl.HttpSolrClient getHttpSolrClient(String solrIndexName) throws org.apache.http.client.ClientProtocolException, IOException
      Throws:
      org.apache.http.client.ClientProtocolException
      IOException