Search in sources :

Example 1 with CarSearchLoader

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);
}
Also used : CarDataBase(io.vertigo.dynamo.search_2_4.data.domain.CarDataBase) SearchIndexDefinition(io.vertigo.dynamo.search.metamodel.SearchIndexDefinition) DefinitionSpace(io.vertigo.core.definition.DefinitionSpace) CarSearchLoader(io.vertigo.dynamo.search_2_4.data.domain.CarSearchLoader) FacetDefinition(io.vertigo.dynamo.collections.metamodel.FacetDefinition) FacetedQueryDefinition(io.vertigo.dynamo.collections.metamodel.FacetedQueryDefinition)

Aggregations

DefinitionSpace (io.vertigo.core.definition.DefinitionSpace)1 FacetDefinition (io.vertigo.dynamo.collections.metamodel.FacetDefinition)1 FacetedQueryDefinition (io.vertigo.dynamo.collections.metamodel.FacetedQueryDefinition)1 SearchIndexDefinition (io.vertigo.dynamo.search.metamodel.SearchIndexDefinition)1 CarDataBase (io.vertigo.dynamo.search_2_4.data.domain.CarDataBase)1 CarSearchLoader (io.vertigo.dynamo.search_2_4.data.domain.CarSearchLoader)1