Commit e157f0ff authored by 赵威's avatar 赵威

es query

parent 58e5a861
......@@ -53,9 +53,13 @@ object Main {
stream.map { user =>
println(user.deviceId)
val query = ES.generateDiaryQuery(-1, user.projects.toList, user.secondDemands.toList)
println(query)
ES.test(query)
val projects = user.projects.toList
val secondDemands = user.secondDemands.toList
if ((projects.size > 0) && (secondDemands.size > 0)) {
val query = ES.generateDiaryQuery(-1, projects, secondDemands)
println(query)
ES.test(query)
}
println("########################")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment