diff --git a/README.md b/README.md index a2e12dd14..aeef18aa3 100644 --- a/README.md +++ b/README.md @@ -110,17 +110,17 @@ public interface SolrProductRepositoryCustom { public class SolrProductRepositoryImpl implements SolrProductRepositoryCustom { - private SolrOperations solrTemplate; + private SolrOperations operations; @Override public Page findProductsByCustomImplementation(String value, Pageable page) { Query query = new SimpleQuery(new SimpleStringCriteria("name:"+value)).setPageRequest(page); - return solrTemplate.queryForPage(query, Product.class); + return solrTemplate.queryForPage("collection1", query, Product.class); } @Autowired public void setOperations(SolrOperations operations) { - this.operations = operations; + this.solrTemplate = operations; } }