Package org.apache.ofbiz.solr
Class SolrUtil
- java.lang.Object
-
- org.apache.ofbiz.solr.SolrUtil
-
public final class SolrUtil extends java.lang.Object
Solr utility class.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
module
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
categoriesAvailable(java.lang.String catalogId, java.lang.String categoryId, java.lang.String productId, boolean displayproducts, int viewIndex, int viewSize, java.lang.String solrIndexName)
static java.util.Map<java.lang.String,java.lang.Object>
categoriesAvailable(java.lang.String catalogId, java.lang.String categoryId, java.lang.String productId, java.lang.String facetPrefix, boolean displayproducts, int viewIndex, int viewSize, java.lang.String solrIndexName)
static org.apache.solr.common.SolrInputDocument
generateSolrDocument(java.util.Map<java.lang.String,java.lang.Object> context)
static org.apache.solr.client.solrj.impl.HttpSolrClient
getHttpSolrClient(java.lang.String solrIndexName)
static SolrUtil
getInstance()
static ComponentConfig.WebappInfo
getSolrWebappInfo()
static boolean
isEcaTreatConnectErrorNonFatal()
static boolean
isSolrEcaEnabled()
static java.lang.String
makeSolrWebappUrl()
-
-
-
Method Detail
-
makeSolrWebappUrl
public static java.lang.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(java.util.Map<java.lang.String,java.lang.Object> context) throws GenericEntityException
- Throws:
GenericEntityException
-
categoriesAvailable
public static java.util.Map<java.lang.String,java.lang.Object> categoriesAvailable(java.lang.String catalogId, java.lang.String categoryId, java.lang.String productId, boolean displayproducts, int viewIndex, int viewSize, java.lang.String solrIndexName)
-
categoriesAvailable
public static java.util.Map<java.lang.String,java.lang.Object> categoriesAvailable(java.lang.String catalogId, java.lang.String categoryId, java.lang.String productId, java.lang.String facetPrefix, boolean displayproducts, int viewIndex, int viewSize, java.lang.String solrIndexName)
-
getInstance
public static SolrUtil getInstance()
-
getHttpSolrClient
public static org.apache.solr.client.solrj.impl.HttpSolrClient getHttpSolrClient(java.lang.String solrIndexName) throws org.apache.http.client.ClientProtocolException, java.io.IOException
- Throws:
org.apache.http.client.ClientProtocolException
java.io.IOException
-
-