com.konakartadmin.blif
Interface AdminSolrMgrIf

All Known Implementing Classes:
AdminSolrMgr

public interface AdminSolrMgrIf

AdminSolrMgrIf


Method Summary
 void addAllProductsToSearchEngine(boolean async)
          Loop through all of the products in the KonaKart database and add them to the Solr search engine.
 void addAllProductsToSearchEngineSync()
          Loop through all of the products in the KonaKart database and add them to the Solr search engine
 void addProductToSearchEngine(int productId)
          Add a single product referenced by productId to the Solr search engine
 void addProductToSearchEngine(int productId, java.lang.String storeId)
          Add a single product referenced by productId to the Solr search engine.
 int getSolrCommitFrequency()
          The chunk size of records read from the database and written to SOLR after which a SOLR commit command is sent.
 void refreshConfigs()
          Refresh the configuration of the Admin Solr Manager
 void removeAllProductsFromSearchEngine(boolean async)
          Remove all products from the Solr search engine.
 void removeAllProductsFromSearchEngineSync()
          Remove all products from the Solr search engine
 void removeProductFromSearchEngine(int productId)
          Remove a single product referenced by productId from the Solr search engine
 void removeProductFromSearchEngine(int productId, java.lang.String storeId)
          Remove a single product referenced by productId from the Solr search engine.
 boolean useSolr()
          Returns true if Solr can be used, otherwise it returns false
 

Method Detail

addAllProductsToSearchEngine

void addAllProductsToSearchEngine(boolean async)
                                  throws java.lang.Exception
Loop through all of the products in the KonaKart database and add them to the Solr search engine. It uses a separate thread since the operation may take a while.

Parameters:
async - If true we do it asynchronously
Throws:
java.lang.Exception

addAllProductsToSearchEngineSync

void addAllProductsToSearchEngineSync()
                                      throws java.lang.Exception
Loop through all of the products in the KonaKart database and add them to the Solr search engine

Throws:
java.lang.Exception

removeAllProductsFromSearchEngine

void removeAllProductsFromSearchEngine(boolean async)
                                       throws org.apache.torque.TorqueException,
                                              com.workingdogs.village.DataSetException,
                                              java.lang.Exception
Remove all products from the Solr search engine. It uses a separate thread since the operation may take a while.

Parameters:
async - If true we do it asynchronously
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.lang.Exception

removeAllProductsFromSearchEngineSync

void removeAllProductsFromSearchEngineSync()
                                           throws org.apache.torque.TorqueException,
                                                  com.workingdogs.village.DataSetException,
                                                  java.lang.Exception
Remove all products from the Solr search engine

Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.lang.Exception

removeProductFromSearchEngine

void removeProductFromSearchEngine(int productId)
                                   throws org.apache.torque.TorqueException,
                                          com.workingdogs.village.DataSetException,
                                          java.lang.Exception
Remove a single product referenced by productId from the Solr search engine

Parameters:
productId -
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.lang.Exception

removeProductFromSearchEngine

void removeProductFromSearchEngine(int productId,
                                   java.lang.String storeId)
                                   throws org.apache.torque.TorqueException,
                                          com.workingdogs.village.DataSetException,
                                          java.lang.Exception
Remove a single product referenced by productId from the Solr search engine. The store is selected by the storeId parameter.

Parameters:
productId -
storeId -
Throws:
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
java.lang.Exception

addProductToSearchEngine

void addProductToSearchEngine(int productId)
                              throws java.lang.Exception
Add a single product referenced by productId to the Solr search engine

Parameters:
productId -
Throws:
java.lang.Exception

addProductToSearchEngine

void addProductToSearchEngine(int productId,
                              java.lang.String storeId)
                              throws java.lang.Exception
Add a single product referenced by productId to the Solr search engine. The store is selected by the storeId parameter.

Parameters:
productId -
storeId -
Throws:
java.lang.Exception

refreshConfigs

void refreshConfigs()
                    throws java.lang.Exception
Refresh the configuration of the Admin Solr Manager

Throws:
java.lang.Exception

useSolr

boolean useSolr()
                throws java.lang.Exception
Returns true if Solr can be used, otherwise it returns false

Returns:
Returns true if Solr can be used, otherwise it returns false
Throws:
java.lang.Exception
com.konakart.app.KKException

getSolrCommitFrequency

int getSolrCommitFrequency()
The chunk size of records read from the database and written to SOLR after which a SOLR commit command is sent. The default value is 100.

Returns:
Returns an integer


Copyright © 2011 DS Data Systems UK Ltd.