admin
2021-03-03 b25591e02ffa14f03d4dd903cfcabdb8678cc0c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.hxh.spring.test;
 
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
 
import com.xxl.job.core.biz.model.ReturnT;
import org.junit.Test;
 
import com.yeshi.buwan.util.SolrUtil;
import org.yeshi.utils.AppMarketUtil;
import org.yeshi.utils.LinuxRemoteCommandUtil;
 
public class Solr {
 
    @Test
    public void test1() {
        List<Long> videoTypeIds = new ArrayList<Long>();
        videoTypeIds.add(150L);
        SolrUtil.getCategoryVideoList(1, "春风十里", 1, videoTypeIds);
    }
 
    @Test
    public void test2() {
        String solrIP = "203.195.196.115";
        String serverAccount = "root";
        String serverPwd = "Yeshi2016@";
        try {
            LinuxRemoteCommandUtil.execute(solrIP, serverAccount, serverPwd, "/solr/solr-7.5.0/solr_restart.sh");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
 
 
    @Test
    public void test3() {
     SolrUtil.dataimportVideo();
    }
 
}