use of io.vertigo.dynamo.search.model.SearchQuery in project vertigo by KleeGroup.
the class AbstractSearchManagerTest method testFacetListByRange.
/**
* Test le facettage par range d'une liste.
*/
@Test
public void testFacetListByRange() {
index(true);
final SearchQuery searchQuery = SearchQuery.builder(ListFilter.of("*:*")).withFacetStrategy(itemFacetQueryDefinition, EMPTY_SELECTED_FACET_VALUES).build();
final FacetedQueryResult<Item, SearchQuery> result = searchManager.loadList(itemIndexDefinition, searchQuery, null);
testFacetResultByRange(result);
}
use of io.vertigo.dynamo.search.model.SearchQuery in project vertigo by KleeGroup.
the class AbstractSearchManagerTest method testFacetListByTerm.
/**
* Test le facettage par term d'une liste.
*/
@Test
public void testFacetListByTerm() {
index(true);
final SearchQuery searchQuery = SearchQuery.builder(ListFilter.of("*:*")).withFacetStrategy(itemFacetQueryDefinition, EMPTY_SELECTED_FACET_VALUES).build();
final FacetedQueryResult<Item, SearchQuery> result = searchManager.loadList(itemIndexDefinition, searchQuery, null);
testFacetResultByTerm(result);
}
use of io.vertigo.dynamo.search.model.SearchQuery in project vertigo by KleeGroup.
the class SearchManagerMultiIndexTest method query.
private long query(final String query, final SearchIndexDefinition indexDefinition) {
// recherche
final SearchQuery searchQuery = SearchQuery.builder(ListFilter.of(query)).build();
final FacetedQueryResult<DtObject, SearchQuery> result = searchManager.loadList(indexDefinition, searchQuery, null);
return result.getCount();
}
Aggregations