values.get(1).setInStock(true);
solrTemplate.saveBeans(values);
solrTemplate.commit();
SimpleQuery query = new SimpleQuery(new Criteria("id").in("rh-1", "rh-2"));
Page<ExampleSolrBean> page = solrTemplate.queryForPage(query, ExampleSolrBean.class);
Assert.assertEquals(2, page.getContent().size());
query = new SimpleQuery(new Criteria("id").in("rh-1", "rh-2"));
query.setRequestHandler("/instock");
page = solrTemplate.queryForPage(query, ExampleSolrBean.class);
Assert.assertEquals(1, page.getContent().size());
Assert.assertEquals("rh-2", page.getContent().get(0).getId());
}