diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 5cbaf46..ee3dd20 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -7,6 +7,7 @@
+
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 4b661a5..f286a57 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -5,8 +5,10 @@
+
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
index 71e56a2..35eb1dd 100644
--- a/.idea/vcs.xml
+++ b/.idea/vcs.xml
@@ -2,6 +2,5 @@
-
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 6400418..e103c7d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,13 +15,44 @@
woka
1.8
+ 5.2.3
+ edu.stanford.nlp
+ stanford-corenlp
+ 3.9.1
+
+
+ com.lucene
+ ikAnalyzer
+ 6.5.0
+
+
+ org.apache.lucene
+ lucene-analyzers-smartcn
+ 8.6.2
+
+
+ org.apache.lucene
+ lucene-highlighter
+ 8.6.2
+
+
+ org.apache.lucene
+ lucene-queryparser
+ 8.6.2
+
+
org.springframework.boot
spring-boot-starter-web
+ org.apache.lucene
+ lucene-core
+ 8.6.2
+
+
org.springframework.boot
spring-boot-starter-test
test
@@ -109,6 +140,20 @@
commons-lang3
3.8.1
+
+ org.jsoup
+ jsoup
+ 1.14.3
+
+
+ org.apache.poi
+ poi-ooxml
+ ${poi.version}
+
+
+ org.springframework
+ spring-test
+
diff --git a/src/main/java/com/main/woka/Web/Service/impl/GraphServiceImpl.java b/src/main/java/com/main/woka/Web/Service/impl/GraphServiceImpl.java
index df7a53b..da36280 100644
--- a/src/main/java/com/main/woka/Web/Service/impl/GraphServiceImpl.java
+++ b/src/main/java/com/main/woka/Web/Service/impl/GraphServiceImpl.java
@@ -96,7 +96,7 @@ public class GraphServiceImpl implements GraphService {
if (query.getRelation() != null && query.getRelation().length > 0) {
for (String r : query.getRelation()) {
// String it = String.format("r.name='%s'", r);
- String it = String.format("r.docTitle='%s'", r);
+ String it = String.format("r.name='%s'", r);
lis.add(it);
}
cqr = String.join(" or ", lis);
@@ -106,11 +106,11 @@ public class GraphServiceImpl implements GraphService {
if (!StringUtils.isBlank(query.getNodename())) {
if (query.getMatchtype() == 1) {
- cqWhere = String.format("where n.docTitle ='%s' ", query.getNodename());
+ cqWhere = String.format("where n.name ='%s' ", query.getNodename());
} else {
// cqWhere = String.format("where n.name contains('%s')", query.getNodename());
- cqWhere = String.format("where n.docTitle contains('%s')", query.getNodename());
+ cqWhere = String.format("where n.name contains('%s')", query.getNodename());
}
}
String nodeOnly = cqWhere;
@@ -184,7 +184,7 @@ public class GraphServiceImpl implements GraphService {
} else {
// cqWhere = String.format("where n.name contains('%s')", query.getNodename());
- cqWhere = String.format("where n.docTitle ='%s'", query.getNodename());
+ cqWhere = String.format("where n.name ='%s'", query.getNodename());
}
}
String nodeOnly = cqWhere;
@@ -247,7 +247,7 @@ public class GraphServiceImpl implements GraphService {
List lis = new ArrayList();
if (query.getNameList() != null && query.getNameList().length > 0) {
for (String r : query.getNameList()) {
- String it = String.format("n.docTitle='%s'", r);
+ String it = String.format("n.name='%s'", r);
lis.add(it);
}
cqr = String.join(" or ", lis);
@@ -259,11 +259,11 @@ public class GraphServiceImpl implements GraphService {
if (!StringUtils.isBlank(query.getNodename())) {
if (query.getMatchtype() == 1) {
- cqWhere = String.format("where n.docTitle ='%s' ", query.getNodename());
+ cqWhere = String.format("where n.name ='%s' ", query.getNodename());
} else {
// cqWhere = String.format("where n.name contains('%s')", query.getNodename());
- cqWhere = String.format("where n.docTitle contains('%s')", query.getNodename());
+ cqWhere = String.format("where n.name contains('%s')", query.getNodename());
}
}
String nodeOnly = cqWhere;
@@ -333,7 +333,7 @@ public class GraphServiceImpl implements GraphService {
} else {
// cqWhere = String.format("where n.name contains('%s')", query.getNodename());
- cqWhere = String.format("where n.docTitle =('%s')", query.getNodename());
+ cqWhere = String.format("where n.name =('%s')", query.getNodename());
}
}
String nodeOnly = cqWhere;
@@ -404,7 +404,7 @@ public class GraphServiceImpl implements GraphService {
} else {
// cqWhere = String.format("where n.name contains('%s')", query.getNodename());
- cqWhere = String.format("where n.docTitle contains('%s')", query.getNodename());
+ cqWhere = String.format("where n.name contains('%s')", query.getNodename());
}
}
String nodeOnly = cqWhere;
@@ -430,28 +430,28 @@ public class GraphServiceImpl implements GraphService {
for(int a=0;a aa = new HashMap<>();
aa.put("id",nno.get(a).get("uuid"));
- aa.put("name",nno.get(a).get("docTitle"));
+ aa.put("name",nno.get(a).get("name"));
aa.put("docId",nno.get(a).get("docId"));
- aa.put("docParentId",nno.get(a).get("docParentId"));
- if(nno.get(a).get("docLeve").equals("leve0")){
+ aa.put("parentId",nno.get(a).get("parentId"));
+ if(nno.get(a).get("leve").equals("leve0")){
aa.put("group","0");
}
- if(nno.get(a).get("docLeve").equals("leve1")){
+ if(nno.get(a).get("leve").equals("leve1")){
aa.put("group","1");
}
- if(nno.get(a).get("docLeve").equals("leve2")){
+ if(nno.get(a).get("leve").equals("leve2")){
aa.put("group","2");
}
- if(nno.get(a).get("docLeve").equals("leve3")){
+ if(nno.get(a).get("leve").equals("leve3")){
aa.put("group","3");
}
- if(nno.get(a).get("docLeve").equals("leve4")){
+ if(nno.get(a).get("leve").equals("leve4")){
aa.put("group","4");
}
- if(nno.get(a).get("docLeve").equals("leve5")){
+ if(nno.get(a).get("leve").equals("leve5")){
aa.put("group","5");
}
- if(nno.get(a).get("docLeve").equals("leve6")){
+ if(nno.get(a).get("leve").equals("leve6")){
aa.put("group","6");
}
@@ -492,28 +492,28 @@ public class GraphServiceImpl implements GraphService {
for(int a=0;a aa = new HashMap<>();
aa.put("id",nodeItem.get(a).get("docId"));
- aa.put("name",nodeItem.get(a).get("docTitle"));
- aa.put("docParentId",nodeItem.get(a).get("docParentId"));
+ aa.put("name",nodeItem.get(a).get("name"));
+ aa.put("parentId",nodeItem.get(a).get("parentId"));
- if(nodeItem.get(a).get("docLeve").equals("leve0")){
+ if(nodeItem.get(a).get("leve").equals("leve0")){
aa.put("group",nodeItem.get(a).get("0"));
}
- if(nodeItem.get(a).get("docLeve").equals("leve1")){
+ if(nodeItem.get(a).get("leve").equals("leve1")){
aa.put("group",nodeItem.get(a).get("1"));
}
- if(nodeItem.get(a).get("docLeve").equals("leve2")){
+ if(nodeItem.get(a).get("leve").equals("leve2")){
aa.put("group",nodeItem.get(a).get("2"));
}
- if(nodeItem.get(a).get("docLeve").equals("leve3")){
+ if(nodeItem.get(a).get("leve").equals("leve3")){
aa.put("group",nodeItem.get(a).get("3"));
}
- if(nodeItem.get(a).get("docLeve").equals("leve4")){
+ if(nodeItem.get(a).get("leve").equals("leve4")){
aa.put("group",nodeItem.get(a).get("4"));
}
- if(nodeItem.get(a).get("docLeve").equals("leve5")){
+ if(nodeItem.get(a).get("leve").equals("leve5")){
aa.put("group",nodeItem.get(a).get("5"));
}
- if(nodeItem.get(a).get("docLeve").equals("leve6")){
+ if(nodeItem.get(a).get("leve").equals("leve6")){
aa.put("group",nodeItem.get(a).get("6"));
}
@@ -536,29 +536,29 @@ public class GraphServiceImpl implements GraphService {
for(int a=0;a aa = new HashMap<>();
aa.put("id",graphNode.get(a).get("uuid"));
- aa.put("name",graphNode.get(a).get("docTitle"));
+ aa.put("name",graphNode.get(a).get("name"));
aa.put("docId",graphNode.get(a).get("docId"));
- aa.put("docParentId",graphNode.get(a).get("docParentId"));
+ aa.put("parentId",graphNode.get(a).get("parentId"));
- if(graphNode.get(a).get("docLeve").equals("leve0")){
+ if(graphNode.get(a).get("leve").equals("leve0")){
aa.put("group","0");
}
- if(graphNode.get(a).get("docLeve").equals("leve1")){
+ if(graphNode.get(a).get("leve").equals("leve1")){
aa.put("group","1");
}
- if(graphNode.get(a).get("docLeve").equals("leve2")){
+ if(graphNode.get(a).get("leve").equals("leve2")){
aa.put("group","2");
}
- if(graphNode.get(a).get("docLeve").equals("leve3")){
+ if(graphNode.get(a).get("leve").equals("leve3")){
aa.put("group","3");
}
- if(graphNode.get(a).get("docLeve").equals("leve4")){
+ if(graphNode.get(a).get("leve").equals("leve4")){
aa.put("group","4");
}
- if(graphNode.get(a).get("docLeve").equals("leve5")){
+ if(graphNode.get(a).get("leve").equals("leve5")){
aa.put("group","5");
}
- if(graphNode.get(a).get("docLeve").equals("leve6")){
+ if(graphNode.get(a).get("leve").equals("leve6")){
aa.put("group","6");
}
diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml
index 6830136..48d3c63 100644
--- a/src/main/resources/application.yml
+++ b/src/main/resources/application.yml
@@ -20,9 +20,9 @@ sa-token:
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
- url: jdbc:mysql://localhost:3306/zhy?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
+ url: jdbc:mysql://localhost:3306/kcfz?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2b8&allowPublicKeyRetrieval=true
username: root
- password: root
+ password: 123456
mybatis:
mapper-locations: classpath*:/mapper/**/*.xml
diff --git a/woka.iml b/woka.iml
index 1daccae..9e3449c 100644
--- a/woka.iml
+++ b/woka.iml
@@ -1,8 +1,6 @@
-
-
-
-
+
+
\ No newline at end of file