Class SearchQueryBoostsTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
-
- de.hybris.platform.solrfacetsearch.integration.SearchQueryBoostsTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class SearchQueryBoostsTest extends AbstractIntegrationTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
DEFAULT_ENCODING, expectedException, FACET_SEARCH_CONFIG_NAME, HW_CATALOG, ONLINE_CATALOG_VERSION, PRODUCT_CODE, SOLR_SERVER_CLOUD_ENDPOINT, SOLR_SERVER_MODE, SOLR_SERVER_STANDALONE_ENDPOINT, STAGED_CATALOG_VERSION
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description SearchQueryBoostsTest()
-
Method Summary
-
Methods inherited from class de.hybris.platform.solrfacetsearch.integration.AbstractIntegrationTest
beforeLoadData, getFacetSearchConfig, getFacetSearchConfigName, getIndexedTypeModel, getProductCode, getSolrFacetSearchConfigModel, getSolrSearchProviderFactory, getTestId, importConfig, importConfig, initializeIndexedType, readFile, setUp, tearDown
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
loadData
protected void loadData() throws ImpExException, java.io.IOException, FacetConfigServiceException, SolrServiceException, org.apache.solr.client.solrj.SolrServerException- Overrides:
loadDatain classAbstractIntegrationTest- Throws:
ImpExExceptionjava.io.IOExceptionFacetConfigServiceExceptionSolrServiceExceptionorg.apache.solr.client.solrj.SolrServerException
-
defaultScore
public void defaultScore() throws java.lang.Exception- Throws:
java.lang.Exception
-
singleMultiplicativeBoost
public void singleMultiplicativeBoost() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleMultiplicativeBoosts
public void multipleMultiplicativeBoosts() throws java.lang.Exception- Throws:
java.lang.Exception
-
singleAdditiveBoost
public void singleAdditiveBoost() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleAdditiveBoosts
public void multipleAdditiveBoosts() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleBoostsSameDocument1
public void multipleBoostsSameDocument1() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleBoostsSameDocument2
public void multipleBoostsSameDocument2() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleBoostsDifferentDocuments
public void multipleBoostsDifferentDocuments() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleBoostsDifferentDocumentsWithFilterQuery
public void multipleBoostsDifferentDocumentsWithFilterQuery() throws java.lang.Exception- Throws:
java.lang.Exception
-
singleMultiplicativeFractionBoost
public void singleMultiplicativeFractionBoost() throws java.lang.Exception- Throws:
java.lang.Exception
-
multipleMultiplicativeFractionBoosts
public void multipleMultiplicativeFractionBoosts() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnStringProperty1
public void boostOnStringProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnStringProperty2
public void boostOnStringProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnTextProperty1
public void boostOnTextProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnTextProperty2
public void boostOnTextProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnBooleanProperty1
public void boostOnBooleanProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnBooleanProperty2
public void boostOnBooleanProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnIntegerProperty1
public void boostOnIntegerProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnIntegerProperty2
public void boostOnIntegerProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnLongProperty1
public void boostOnLongProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnLongProperty2
public void boostOnLongProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnFloatProperty1
public void boostOnFloatProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnFloatProperty2
public void boostOnFloatProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnDoubleProperty1
public void boostOnDoubleProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnDoubleProperty2
public void boostOnDoubleProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnDateProperty1
public void boostOnDateProperty1() throws java.lang.Exception- Throws:
java.lang.Exception
-
boostOnDateProperty2
public void boostOnDateProperty2() throws java.lang.Exception- Throws:
java.lang.Exception
-
executeSearchQuery
protected SearchResult executeSearchQuery(java.util.function.Consumer<SearchQuery> action) throws java.lang.Exception
- Throws:
java.lang.Exception
-
assertProductCode
protected void assertProductCode(java.lang.String expectedProductCode, Document document)
-
assertScore
protected void assertScore(float expectedScore, Document document)
-
-