| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | |
| | | //@RunWith(SpringRunner.class) |
| | | //@SpringBootTest(classes = esTest.class) |
| | | |
| | | @SpringBootTest |
| | | public class esTest { |
| | |
| | | @Test |
| | | public void esUser() |
| | | { |
| | | // 操作索引的对象 |
| | | // this.elas = new ElasticSearchConfig(); |
| | | |
| | | |
| | | |
| | | // CreateIndexRequest request = new CreateIndexRequest("ysx_course"); |
| | | |
| | | // request.settings(Settings.builder().put("number_of_shards", "1").put("number_of_replicas", "0")); |
| | | // request.settings(Settings.builder().put("number_of_shards", "1").put("number_of_replicas", "0")); |
| | | } |
| | | @Test |