Package org.apache.ofbiz.solr
Class SolrUtil
java.lang.Object
org.apache.ofbiz.solr.SolrUtil
Solr utility class.
-
Method Summary
Modifier and TypeMethodDescriptioncategoriesAvailable
(String catalogId, String categoryId, String productId, boolean displayproducts, int viewIndex, int viewSize, String solrIndexName) categoriesAvailable
(String catalogId, String categoryId, String productId, String facetPrefix, boolean displayproducts, int viewIndex, int viewSize, String solrIndexName) static org.apache.solr.common.SolrInputDocument
generateSolrDocument
(Map<String, Object> context) static org.apache.solr.client.solrj.impl.HttpSolrClient
getHttpSolrClient
(String solrIndexName) static SolrUtil
static ComponentConfig.WebappInfo
static boolean
static boolean
static String
-
Method Details
-
makeSolrWebappUrl
-
isSolrEcaEnabled
public static boolean isSolrEcaEnabled() -
getSolrWebappInfo
-
isEcaTreatConnectErrorNonFatal
public static boolean isEcaTreatConnectErrorNonFatal() -
generateSolrDocument
public static org.apache.solr.common.SolrInputDocument generateSolrDocument(Map<String, Object> context) throws GenericEntityException- Throws:
GenericEntityException
-
categoriesAvailable
-
categoriesAvailable
-
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
-