Search in sources :

Example 1 with ItemSearchLoader

use of io.vertigo.dynamo.search.data.domain.ItemSearchLoader 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
    itemDataBase = new ItemDataBase();
    final ItemSearchLoader itemSearchLoader = getApp().getComponentSpace().resolve(ItemSearchLoader.class);
    itemSearchLoader.bindDataBase(itemDataBase);
    manufacturerFacetDefinition = definitionSpace.resolve("FCT_MANUFACTURER_ITEM", FacetDefinition.class);
    yearFacetDefinition = definitionSpace.resolve("FCT_YEAR_ITEM", FacetDefinition.class);
    itemIndexDefinition = definitionSpace.resolve(indexName, SearchIndexDefinition.class);
    itemFacetQueryDefinition = definitionSpace.resolve("QRY_ITEM_FACET", FacetedQueryDefinition.class);
    itemFacetMultiQueryDefinition = definitionSpace.resolve("QRY_ITEM_FACET_MULTI", FacetedQueryDefinition.class);
    clean(itemIndexDefinition);
}
Also used : ItemDataBase(io.vertigo.dynamo.search.data.domain.ItemDataBase) SearchIndexDefinition(io.vertigo.dynamo.search.metamodel.SearchIndexDefinition) DefinitionSpace(io.vertigo.core.definition.DefinitionSpace) ItemSearchLoader(io.vertigo.dynamo.search.data.domain.ItemSearchLoader) 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 ItemDataBase (io.vertigo.dynamo.search.data.domain.ItemDataBase)1 ItemSearchLoader (io.vertigo.dynamo.search.data.domain.ItemSearchLoader)1 SearchIndexDefinition (io.vertigo.dynamo.search.metamodel.SearchIndexDefinition)1