use of io.vertigo.dynamo.search_2_4.data.domain.CarSearchLoader in project vertigo by KleeGroup.
the class AbstractSearchManagerTest method init.
/**
* Initialise l'index.
* @param indexName Nom de l'index
*/
protected final void init(final String indexName) {
final DefinitionSpace definitionSpace = getApp().getDefinitionSpace();
// On construit la BDD des voitures
carDataBase = new CarDataBase();
carDataBase.loadDatas();
final CarSearchLoader carSearchLoader = getApp().getComponentSpace().resolve(CarSearchLoader.class);
carSearchLoader.bindDataBase(carDataBase);
makeFacetDefinition = definitionSpace.resolve("FCT_MAKE_CAR", FacetDefinition.class);
yearFacetDefinition = definitionSpace.resolve("FCT_YEAR_CAR", FacetDefinition.class);
carIndexDefinition = definitionSpace.resolve(indexName, SearchIndexDefinition.class);
carFacetQueryDefinition = definitionSpace.resolve("QRY_CAR_FACET", FacetedQueryDefinition.class);
clean(carIndexDefinition);
}
Aggregations