Skip to content

Commit

Permalink
Implement
Browse files Browse the repository at this point in the history
  • Loading branch information
nik9000 committed Nov 27, 2023
1 parent 3df3ca3 commit 9ceb435
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ public SearchLookup lookup() {
public Set<String> sourcePaths(String name) {
return Set.of(name);
}

@Override
public String parentField(String field) {
throw new UnsupportedOperationException();
}
});
}
throw new IllegalArgumentException("can't read [" + name + "]");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,11 @@ public SearchLookup lookup() {
public Set<String> sourcePaths(String name) {
return Set.of(name);
}

@Override
public String parentField(String field) {
throw new UnsupportedOperationException();
}
})));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ public SearchLookup lookup() {
public Set<String> sourcePaths(String name) {
return mapper.mappingLookup().sourcePaths(name);
}

@Override
public String parentField(String field) {
throw new UnsupportedOperationException();
}
});
try (Directory directory = newDirectory()) {
RandomIndexWriter iw = new RandomIndexWriter(random(), directory);
Expand Down

0 comments on commit 9ceb435

Please sign in to comment.