red-napkin-59945
03/03/2022, 6:26 AMBrowsableEntityType
and noticed other existing type has some variable called FACET_FIELDS
like in DashboardType
private static final Set<String> FACET_FIELDS = ImmutableSet.of("access", "tool");
loud-island-88694
early-lamp-41924
03/03/2022, 6:44 PMred-napkin-59945
03/03/2022, 7:53 PMBrowsableEntityType
I found the FACET_FIELDS
in all other BrowsableEntityType
like DashboardType.java
private static final Set<String> FACET_FIELDS = ImmutableSet.of("access", "tool");
early-lamp-41924
03/03/2022, 8:01 PMearly-lamp-41924
03/03/2022, 8:01 PMearly-lamp-41924
03/03/2022, 8:01 PMred-napkin-59945
03/03/2022, 8:07 PMearly-lamp-41924
03/03/2022, 8:12 PMearly-lamp-41924
03/03/2022, 8:12 PMred-napkin-59945
03/03/2022, 8:13 PM@Override
public BrowseResults browse(@Nonnull List<String> path, @Nullable List<FacetFilterInput> filters, int start,
int count, @Nonnull QueryContext context) throws Exception {
final Map<String, String> facetFilters = ResolverUtils.buildFacetFilters(filters, FACET_FIELDS);
final String pathStr = path.size() > 0 ? BROWSE_PATH_DELIMITER + String.join(BROWSE_PATH_DELIMITER, path) : "";
final BrowseResult result =
_entityClient.browse(DATA_DOC_ENTITY_NAME, pathStr, facetFilters, start, count, context.getAuthentication());
return BrowseResultMapper.map(result);
}
early-lamp-41924
03/03/2022, 8:15 PMred-napkin-59945
03/03/2022, 8:16 PM