コード例 #1
0
 @After
 public void tearDown() {
   Query query = new SimpleQuery(new SimpleStringCriteria("cat:test"));
   solrOperations.delete(query);
   solrOperations.commit();
 }
コード例 #2
0
 @Test
 public void retrieveAllRecordCount() {
   Query query = new SimpleQuery(new SimpleStringCriteria("*:*"));
   Page<Product> products = solrOperations.queryForPage(query, Product.class);
   Assert.assertEquals(INITIAL_RECORD_COUNT, products.getTotalElements());
 }