Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
aroad_aqsc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许言琪
aroad_aqsc
Commits
fd3ec008
提交
fd3ec008
authored
5月 18, 2019
作者:
董吉利
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Merge branch 'dev' of D:\IDEAworkspace\aroad with conflicts.
上级
dc11f388
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
13 行增加
和
3 行删除
+13
-3
pom.xml
pom.xml
+5
-0
EsUtil_fanshe.java
...lephant/framework/galaxy/aroad/bigdata/EsUtil_fanshe.java
+2
-2
ReadElasticsearch.java
...ant/framework/galaxy/aroad/bigdata/ReadElasticsearch.java
+1
-1
application.yml
src/main/resources/application.yml
+5
-0
没有找到文件。
pom.xml
浏览文件 @
fd3ec008
...
@@ -27,6 +27,11 @@
...
@@ -27,6 +27,11 @@
<!--<groupId>org.springframework.boot</groupId>-->
<!--<groupId>org.springframework.boot</groupId>-->
<!--<artifactId>spring-boot-starter-amqp</artifactId>-->
<!--<artifactId>spring-boot-starter-amqp</artifactId>-->
<!--</dependency>-->
<!--</dependency>-->
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-configuration-processor
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
<artifactId>
spring-boot-starter-data-redis
</artifactId>
...
...
src/main/java/com/elephant/framework/galaxy/aroad/bigdata/EsUtil_fanshe.java
浏览文件 @
fd3ec008
...
@@ -908,9 +908,9 @@ public class EsUtil_fanshe {
...
@@ -908,9 +908,9 @@ public class EsUtil_fanshe {
* @Author: dongjili
* @Author: dongjili
* @Date: 2019/5/14 0014
* @Date: 2019/5/14 0014
*/
*/
public
static
List
<
Basehighwayalldata
>
queryHighWayFiler
(
String
lxbh
,
double
zh
,
String
type
)
throws
Exception
{
public
static
List
<
Basehighwayalldata
>
queryHighWayFiler
(
String
lxbh
,
double
zh
,
String
index
,
String
type
,
int
start
,
int
row
)
throws
Exception
{
//搜索数据
//搜索数据
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
"basehighwayalldata"
).
setTypes
(
type
).
setFrom
(
0
).
setSize
(
1
);
SearchRequestBuilder
searchRequestBuilder
=
getClient
().
prepareSearch
(
index
).
setTypes
(
type
).
setFrom
(
start
).
setSize
(
row
);
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
//isNotBlank(str) 等价于 str != null && str.length > 0 && str.trim().length> 0(去掉字符串两端的多余的空格的长度)
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
lxbh
))
{
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotBlank
(
lxbh
))
{
//multiMatchQuery多个字段匹配某一个值
//multiMatchQuery多个字段匹配某一个值
...
...
src/main/java/com/elephant/framework/galaxy/aroad/bigdata/ReadElasticsearch.java
浏览文件 @
fd3ec008
...
@@ -35,7 +35,7 @@ public class ReadElasticsearch {
...
@@ -35,7 +35,7 @@ public class ReadElasticsearch {
System.out.println(basehighwayalldata);
System.out.println(basehighwayalldata);
}*/
}*/
//通过路线编号匹配,查询字段在起点桩号和止点桩号之间范围查询
//通过路线编号匹配,查询字段在起点桩号和止点桩号之间范围查询
List
<
Basehighwayalldata
>
basehighwayalldataArrayList
=
EsUtil_fanshe
.
queryHighWayFiler
(
"G342"
,
405
,
"
2018"
);
List
<
Basehighwayalldata
>
basehighwayalldataArrayList
=
EsUtil_fanshe
.
queryHighWayFiler
(
"G342"
,
405
,
"
basehighwayalldata"
,
"2018"
,
0
,
2000000000
);
for
(
Basehighwayalldata
basehighwayalldata
:
basehighwayalldataArrayList
)
{
for
(
Basehighwayalldata
basehighwayalldata
:
basehighwayalldataArrayList
)
{
System
.
out
.
println
(
basehighwayalldata
);
System
.
out
.
println
(
basehighwayalldata
);
}
}
...
...
src/main/resources/application.yml
浏览文件 @
fd3ec008
...
@@ -2,3 +2,8 @@
...
@@ -2,3 +2,8 @@
spring
:
spring
:
profiles
:
profiles
:
active
:
dev
active
:
dev
connect
:
host1
:
192.168.7.200
host2
:
192.168.7.210
host3
:
192.168.7.220
port
:
9300
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论