Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Fixed outdated SolrProductRepositoryImpl example #78

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ public interface SolrProductRepositoryCustom {

public class SolrProductRepositoryImpl implements SolrProductRepositoryCustom {

private SolrOperations solrTemplate;
private SolrOperations operations;

@Override
public Page<Product> 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;
}

}
Expand Down