Class SolrUtil


  • public final class SolrUtil
    extends Object
    Solr utility class.
    • Field Detail

      • module

        public static final String module
    • Method Detail

      • makeSolrWebappUrl

        public static String makeSolrWebappUrl()
      • isSolrEcaEnabled

        public static boolean isSolrEcaEnabled()
      • isEcaTreatConnectErrorNonFatal

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