Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • module

        public static final java.lang.String module
    • Method Detail

      • makeSolrWebappUrl

        public static java.lang.String makeSolrWebappUrl()
      • isSolrEcaEnabled

        public static boolean isSolrEcaEnabled()
      • 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