com.konakart.blif
Interface SolrMgrIf

All Known Implementing Classes:
SolrMgr

public interface SolrMgrIf

SolrMgrIf Interface which an implementation of this manager must adhere to.


Method Summary
 SuggestedSearchItem[] getSuggestedSearchItems(java.lang.String sessionId, SuggestedSearchOptionsIf options)
          Method that uses SOLR Terms in order to get suggested search data based on a search string.
 void refreshConfigs()
          Get the config variables needed to setup the Solr mgr
 void removeProductFromSearchEngine(int productId)
          Remove a single product referenced by productId from the Solr search engine
 SolrProducts searchForProducts(java.lang.String sessionId, DataDescriptorIf dataDesc, ProductSearchIf prodSearch, int priceId, int languageId)
          This method only gets called if the Solr search engine is activated and if the prodSearch contains some text.
 boolean useSolr()
          Returns true if Solr can be used, otherwise it returns false
 

Method Detail

searchForProducts

SolrProducts searchForProducts(java.lang.String sessionId,
                               DataDescriptorIf dataDesc,
                               ProductSearchIf prodSearch,
                               int priceId,
                               int languageId)
                               throws java.lang.Exception
This method only gets called if the Solr search engine is activated and if the prodSearch contains some text.

Parameters:
sessionId -
dataDesc -
prodSearch -
priceId -
languageId -
Returns:
Returns an array of integers for the products that have been found
Throws:
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

getSuggestedSearchItems

SuggestedSearchItem[] getSuggestedSearchItems(java.lang.String sessionId,
                                              SuggestedSearchOptionsIf options)
                                              throws java.lang.Exception
Method that uses SOLR Terms in order to get suggested search data based on a search string.

Parameters:
sessionId - May be left null
options -
Returns:
Returns an array of SuggestedSearchItems
Throws:
KKException
java.lang.Exception

refreshConfigs

void refreshConfigs()
                    throws java.lang.Exception
Get the config variables needed to setup the Solr mgr

Throws:
java.lang.Exception

useSolr

boolean useSolr()
                throws KKException
Returns true if Solr can be used, otherwise it returns false

Returns:
Returns true if Solr can be used, otherwise it returns false
Throws:
KKException


Copyright © 2011 DS Data Systems UK Ltd.