List of usage examples for org.springframework.data.solr.core.query.result SolrResultPage SolrResultPage
public SolrResultPage(List<T> content)
From source file:com.eurodisney.streamit.solr.product.ProductServiceImpl.java
@Override public FacetPage<Product> autocompleteNameFragment(String fragment, Pageable pageable) { if (StringUtils.isBlank(fragment)) { return new SolrResultPage<Product>(Collections.<Product>emptyList()); }//from www.j a va2s .co m return productRepository.findByNameStartsWith(splitSearchTermAndRemoveIgnoredCharacters(fragment), pageable); }
From source file:com.lijojacob.mls.productcatalog.index.ProductDocumentServiceImpl.java
@Override public FacetPage<ProductDocument> autocompleteNameFragment(String fragment, Pageable pageable) { if (StringUtils.isBlank(fragment)) { return new SolrResultPage<ProductDocument>(Collections.<ProductDocument>emptyList()); }/*from w w w. j a v a 2 s . com*/ return productDocumentRepository .findByDisplayNameStartsWith(splitSearchTermAndRemoveIgnoredCharacters(fragment), pageable); }