File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/main/antora/modules/ROOT/pages/elasticsearch Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public class Statement {
52
52
return routing;
53
53
}
54
54
55
- public void setRouting(Routing routing) {
55
+ public void setRouting(String routing) {
56
56
this.routing = routing;
57
57
}
58
58
@@ -199,7 +199,7 @@ void init() {
199
199
repository.save(
200
200
Statement.builder()
201
201
.withText("+1 for the sun")
202
- , withRouting(savedWeather.getId())
202
+ . withRouting(savedWeather.getId())
203
203
.withRelation(new JoinField<>("vote", sunnyAnswer.getId())) <5>
204
204
.build());
205
205
}
@@ -226,6 +226,7 @@ SearchHits<Statement> hasVotes() {
226
226
Query query = NativeQuery.builder()
227
227
.withQuery(co.elastic.clients.elasticsearch._types.query_dsl.Query.of(qb -> qb
228
228
.hasChild(hc -> hc
229
+ .type("answer")
229
230
.queryName("vote")
230
231
.query(matchAllQueryAsQuery())
231
232
.scoreMode(ChildScoreMode.None)
You can’t perform that action at this time.
0 commit comments