Skip to content

Commit

Permalink
#559 return bson filter that don't match for visitMetadata because se…
Browse files Browse the repository at this point in the history
…arching for metadata isn't supported;

Signed-off-by: Stefan Maute <stefan.maute@bosch.io>
  • Loading branch information
Stefan Maute committed Sep 23, 2021
1 parent ba476eb commit 5766950
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ private Bson matchKey(final String keyRegex) {

@Override
public Bson visitMetadata(final String key) {
return null;
// search on _metadata is not supported, return filter that don't match
return Filters.eq("nomatch");
}

private static String escapeAndWrapExistsRegex(final String string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public Bson visitFeatureIdDesiredProperty(final CharSequence featureId, final Ch

@Override
public Bson visitMetadata(final String key) {
return null;
// search on _metadata is not supported, return filter that don't match
return Filters.eq("nomatch");
}

@Override
Expand Down

0 comments on commit 5766950

Please sign in to comment.