return getSolrOperations().queryForFacetPage(query, Product.class);
}
@Override
public Page<Product> findByAvailableTrue() {
Query query = new SimpleQuery(new Criteria(new SimpleField(Criteria.WILDCARD)).expression(Criteria.WILDCARD));
query.addFilterQuery(new SimpleQuery(new Criteria(SolrSearchableFields.AVAILABLE).is(true)));
return getSolrOperations().queryForPage(query, Product.class);
}